File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,22 @@ GLOBAL postcpvirtualenv"
112
112
113
113
test_no_site_packages () {
114
114
# See issue #102
115
- mkvirtualenv " source" --no-site-packages
115
+ mkvirtualenv " source" --no-site-packages > /dev/null 2>&1
116
116
cpvirtualenv " source" " destination"
117
117
ngsp_file=" ` virtualenvwrapper_get_site_packages_dir` /../no-global-site-packages.txt"
118
118
assertTrue " $ngsp_file does not exist in copied env" " [ -f \" $ngsp_file \" ]"
119
119
}
120
120
121
+ test_no_site_packages_default_args () {
122
+ # See issue #102
123
+ VIRTUALENVWRAPPER_VIRTUALENV_ARGS=" --no-site-packages"
124
+ # With the argument, verify that they are not copied.
125
+ mkvirtualenv " source" > /dev/null 2>&1
126
+ cpvirtualenv " source" " destination"
127
+ ngsp_file=" ` virtualenvwrapper_get_site_packages_dir` /../no-global-site-packages.txt"
128
+ assertTrue " $ngsp_file does not exist" " [ -f \" $ngsp_file \" ]"
129
+ unset VIRTUALENVWRAPPER_VIRTUALENV_ARGS
130
+ }
131
+
121
132
. " $test_dir /shunit2"
122
133
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ test_mkvirtualenv_sitepackages () {
104
104
}
105
105
106
106
test_mkvirtualenv_args () {
107
+ # See issue #102
107
108
VIRTUALENVWRAPPER_VIRTUALENV_ARGS=" --no-site-packages"
108
109
# With the argument, verify that they are not copied.
109
110
mkvirtualenv " without_sp2" > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments