Skip to content

Commit 083fc74

Browse files
committed
Fix usage of virtualenv to ensure that tests are run in the bare virtualenv. Ref #2764.
1 parent 46591cf commit 083fc74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setuptools/tests/test_virtualenv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def test_clean_env_install(bare_virtualenv, tmp_src):
4545
"""
4646
Check setuptools can be installed in a clean environment.
4747
"""
48-
bare_virtualenv.run(['python', 'setup.py', 'install'], cd=tmp_src)
48+
cmd = [bare_virtualenv.python, 'setup.py', 'install']
49+
bare_virtualenv.run(cmd, cd=tmp_src)
4950

5051

5152
def _get_pip_versions():
@@ -203,5 +204,5 @@ def test_no_missing_dependencies(bare_virtualenv, request):
203204
Quick and dirty test to ensure all external dependencies are vendored.
204205
"""
205206
for command in ('upload',): # sorted(distutils.command.__all__):
206-
cmd = ['python', 'setup.py', command, '-h']
207+
cmd = [bare_virtualenv.python, 'setup.py', command, '-h']
207208
bare_virtualenv.run(cmd, cd=request.config.rootdir)

0 commit comments

Comments
 (0)