Skip to content

Commit

Permalink
Fix usage of virtualenv to ensure that tests are run in the bare virt…
Browse files Browse the repository at this point in the history
…ualenv. Ref #2764.
  • Loading branch information
jaraco committed Oct 20, 2021
1 parent 46591cf commit 083fc74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setuptools/tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def test_clean_env_install(bare_virtualenv, tmp_src):
"""
Check setuptools can be installed in a clean environment.
"""
bare_virtualenv.run(['python', 'setup.py', 'install'], cd=tmp_src)
cmd = [bare_virtualenv.python, 'setup.py', 'install']
bare_virtualenv.run(cmd, cd=tmp_src)


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

0 comments on commit 083fc74

Please sign in to comment.