Skip to content

Commit 853b000

Browse files
committed
remove directories likely to contain a site-wide virtualenv installation and hide the error message because we expect mkvirtualenv to fail
1 parent 63b7caf commit 853b000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_mkvirtualenv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ GLOBAL postmkvirtualenv"
5555

5656
test_no_virtualenv () {
5757
old_path="$PATH"
58-
PATH="/usr/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$HOME/bin"
59-
mkvirtualenv should_not_be_created # 2>/dev/null
58+
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
59+
mkvirtualenv should_not_be_created 2>/dev/null
6060
RC=$?
6161
# Restore the path before testing because
6262
# the test script depends on commands in the

0 commit comments

Comments
 (0)