From cb394c6ae89d61e991e813156e1b42dc9e0fadb2 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Wed, 11 May 2022 16:04:05 +0300 Subject: [PATCH] PyPy >= 7.3.9 fixed the venv problem on windows --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 015a7b7e..15f0bd41 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,7 +2,6 @@ import os import os.path -import platform import shutil import stat import subprocess @@ -66,7 +65,9 @@ def pytest_addoption(parser): parser.addoption('--only-integration', action='store_true', help='only run the integration tests') -PYPY3_WIN_VENV_BAD = platform.python_implementation() == 'PyPy' and sys.platform.startswith('win') +PYPY3_WIN_VENV_BAD = ( + sys.implementation.name == 'pypy' and sys.implementation.version < (7, 3, 9) and sys.platform.startswith('win') +) PYPY3_WIN_M = 'https://foss.heptapod.net/pypy/pypy/-/issues/3323 and https://foss.heptapod.net/pypy/pypy/-/issues/3321'