File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,18 @@ test_virtualenvwrapper_initialize() {
37
37
assertSame " $expected " " $output "
38
38
}
39
39
40
+ test_virtualenvwrapper_space_in_workon_home () {
41
+ before=" $WORKON_HOME "
42
+ export WORKON_HOME=" $WORKON_HOME /this has spaces"
43
+ expected=" $WORKON_HOME "
44
+ mkdir -p " $expected "
45
+ virtualenvwrapper_initialize
46
+ RC=$?
47
+ assertSame " $expected " " $WORKON_HOME "
48
+ assertSame " 0" " $RC "
49
+ export WORKON_HOME=" $before "
50
+ }
51
+
40
52
test_virtualenvwrapper_verify_workon_home () {
41
53
assertTrue " WORKON_HOME not verified" virtualenvwrapper_verify_workon_home
42
54
}
@@ -79,7 +91,7 @@ test_python_interpreter_set_incorrectly() {
79
91
mkvirtualenv --no-site-packages no_wrappers
80
92
expected=" ImportError: No module named virtualenvwrapper.hook_loader"
81
93
output=$( VIRTUALENVWRAPPER_PYTHON=$( which python) $SHELL $return_to /virtualenvwrapper.sh 2>&1 )
82
- echo " $output " | grep " $expected " 2>&1
94
+ echo " $output " | grep -q " $expected " 2>&1
83
95
found=$?
84
96
assertTrue " Expected \" $expected \" , got: \" $output \" " " [ $found -eq 0 ]"
85
97
assertFalse " Failed to detect invalid Python location" " VIRTUALENVWRAPPER_PYTHON=$VIRTUAL_ENV /bin/python $SHELL $return_to /virtualenvwrapper.sh >/dev/null 2>&1"
You can’t perform that action at this time.
0 commit comments