Browse Source

test_wheel: Require at least pytest 6.2.4 for Python 3.10+

See pytest-dev/pytest#8539
rdb 4 years ago
parent
commit
38488d89a2
1 changed files with 6 additions and 1 deletions
  1. 6 1
      makepanda/test_wheel.py

+ 6 - 1
makepanda/test_wheel.py

@@ -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"]