Skip to content

Commit

Permalink
Use 'virtualenv.python'. Fixes #2434.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 18, 2020
1 parent 898ae04 commit 66ca420
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 @@ -168,8 +168,9 @@ def sdist(distname, version):
open('success', 'w').close()
'''))
# Run test command for test package.
virtualenv.run(
['python', 'setup.py', 'test', '-s', 'test'], cd=str(tmpdir))
# use 'virtualenv.python' as workaround for man-group/pytest-plugins#166
cmd = [virtualenv.python, 'setup.py', 'test', '-s', 'test']

This comment has been minimized.

Copy link
@webknjaz

webknjaz Oct 18, 2020

Member

Ah... I suspected something like this but wasn't sure.

virtualenv.run(cmd, cd=str(tmpdir))
assert tmpdir.join('success').check()


Expand Down

0 comments on commit 66ca420

Please sign in to comment.