diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-19 23:05:01 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-19 23:05:01 -0400 |
| commit | 083fc74dac7c19a07842f23066467a9b8285f186 (patch) | |
| tree | 023cd303454e0733d579c0e5ee20449d400868db /setuptools/tests/test_virtualenv.py | |
| parent | 46591cfae8bd2d9fd7164a66b670d58578e8ff6c (diff) | |
| download | python-setuptools-git-083fc74dac7c19a07842f23066467a9b8285f186.tar.gz | |
Fix usage of virtualenv to ensure that tests are run in the bare virtualenv. Ref #2764.
Diffstat (limited to 'setuptools/tests/test_virtualenv.py')
| -rw-r--r-- | setuptools/tests/test_virtualenv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index 399dbaf0..462e20c7 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -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(): @@ -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) |
