Skip to content

Commit cb394c6

Browse files
mattipgaborbernat
authored andcommitted
PyPy >= 7.3.9 fixed the venv problem on windows
1 parent 32bdb1e commit cb394c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import os
44
import os.path
5-
import platform
65
import shutil
76
import stat
87
import subprocess
@@ -66,7 +65,9 @@ def pytest_addoption(parser):
6665
parser.addoption('--only-integration', action='store_true', help='only run the integration tests')
6766

6867

69-
PYPY3_WIN_VENV_BAD = platform.python_implementation() == 'PyPy' and sys.platform.startswith('win')
68+
PYPY3_WIN_VENV_BAD = (
69+
sys.implementation.name == 'pypy' and sys.implementation.version < (7, 3, 9) and sys.platform.startswith('win')
70+
)
7071
PYPY3_WIN_M = 'https://foss.heptapod.net/pypy/pypy/-/issues/3323 and https://foss.heptapod.net/pypy/pypy/-/issues/3321'
7172

7273

0 commit comments

Comments
 (0)