Skip to content

Commit 0845b82

Browse files
committed
update test to handle change easy_install
Either the new pip or the new setuptools changes the virtualenv so easy-install.pth is no longer present when the test runs, so look for easy_install itself. Change-Id: I9c3da40725d7efd6f7377df27d4666578beeb41c
1 parent 2d474d9 commit 0845b82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_ls.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ test_get_site_packages_dir () {
2828
test_lssitepackages () {
2929
mkvirtualenv "lssitepackagestest" >/dev/null 2>&1
3030
contents="$(lssitepackages)"
31-
actual=$(echo $contents | grep easy-install.pth)
32-
expected=$(echo $contents)
33-
assertSame "$expected" "$actual"
31+
assertTrue "did not find easy_install in site-packages" "echo $contents | grep -q easy_install"
3432
deactivate
3533
}
3634

0 commit comments

Comments
 (0)