Skip to content

Commit 7432e1c

Browse files
vzhestkovdwoz
authored andcommitted
Fix virtualenv call in test helper to use proper python version
1 parent 1d789ba commit 7432e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/support/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,14 +1748,14 @@ def get_installed_packages(self):
17481748
return data
17491749

17501750
def _create_virtualenv(self):
1751-
pyexec = shutil.which("python3") or shutil.which("python")
1751+
pyexec = self.get_real_python()
17521752
if not pyexec:
17531753
pytest.fail("'python' or 'python3' binary not found for virtualenv")
17541754
cmd = [
17551755
pyexec,
17561756
"-m",
17571757
"virtualenv",
1758-
f"--python={self.get_real_python()}",
1758+
f"--python={pyexec}",
17591759
]
17601760
if self.system_site_packages:
17611761
cmd.append("--system-site-packages")

0 commit comments

Comments
 (0)