We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d789ba commit 7432e1cCopy full SHA for 7432e1c
tests/support/helpers.py
@@ -1748,14 +1748,14 @@ def get_installed_packages(self):
1748
return data
1749
1750
def _create_virtualenv(self):
1751
- pyexec = shutil.which("python3") or shutil.which("python")
+ pyexec = self.get_real_python()
1752
if not pyexec:
1753
pytest.fail("'python' or 'python3' binary not found for virtualenv")
1754
cmd = [
1755
pyexec,
1756
"-m",
1757
"virtualenv",
1758
- f"--python={self.get_real_python()}",
+ f"--python={pyexec}",
1759
]
1760
if self.system_site_packages:
1761
cmd.append("--system-site-packages")
0 commit comments