Skip to content

Commit d122947

Browse files
committed
Invoke the initialization hooks directly when testing for error with Python
1 parent 6fe5029 commit d122947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test_python_interpreter_set_incorrectly() {
9797
found_it=$?
9898
#echo "$found_it"
9999
assertTrue "Expected \'$expected\', got: \'$subshell_output\'" "[ $found_it -eq 0 ]"
100-
assertFalse "Failed to detect invalid Python location" "VIRTUALENVWRAPPER_PYTHON=$VIRTUAL_ENV/bin/python $SHELL $return_to/virtualenvwrapper.sh >/dev/null 2>&1"
100+
assertFalse "Failed to detect invalid Python location" "VIRTUALENVWRAPPER_PYTHON=$VIRTUAL_ENV/bin/python virtualenvwrapper_run_hook initialize >/dev/null 2>&1"
101101
cd "$return_to"
102102
deactivate
103103
}

0 commit comments

Comments
 (0)