Skip to content

Commit c10dbfa

Browse files
committed
Fix runtests.py for venv
1 parent e266312 commit c10dbfa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

runtests.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@
5353

5454

5555
def run_tests_exe(executable, verbose, tested):
56-
executable = os.path.realpath(executable)
57-
if executable in tested:
56+
tested_key = os.path.realpath(executable)
57+
if tested_key in tested:
5858
return
5959

60+
# Don't use realpath() for the executed command to support virtual
61+
# environments
6062
cmd = [executable, TEST_COMPAT]
6163
if verbose:
6264
cmd.append('-v')
6365
run_command(cmd)
64-
tested.add(executable)
66+
tested.add(tested_key)
6567

6668

6769
def run_tests(python, verbose, tested):

0 commit comments

Comments
 (0)