test_wheel: Require at least pytest 6.2.4 for Python 3.10+

See pytest-dev/pytest#8539
This commit is contained in:
rdb 2022-01-05 08:20:13 +01:00
parent ae6be7e113
commit 38488d89a2

View File

@ -49,7 +49,12 @@ def test_wheel(wheel, verbose=False):
open(pep425tags, "w").write(data)
# Install pytest into the environment, as well as our wheel.
packages = ["pytest", wheel]
packages = [wheel]
if sys.version_info >= (3, 10):
packages += ["pytest>=6.2.4"]
else:
packages += ["pytest"]
if sys.version_info[0:2] == (3, 4):
if sys.platform == "win32":
packages += ["colorama==0.4.1"]