Record incompatibility of some `pytest` versions with Python 3.9
Marco Ricci

Marco Ricci commited on 2026-04-03 19:54:33
Zeige 1 geänderte Dateien mit 6 Einfügungen und 2 Löschungen.


Presumably, the `pytest` developers did not test Python 3.9
compatibility when using the (then non-standard) LL(1) parser.

On the other hand, neither did we keep our test environments up-to-date,
lest we would likely have noticed this incompatibility earlier… :/
... ...
@@ -78,8 +78,11 @@ dev = [
78 78
     "pytest-randomly >= 3.15",
79 79
     "pytest-xdist >= 3.6.0",
80 80
     'pytest-xdist[psutil] >= 3.6.0; platform_python_implementation != "PyPy"',
81
-    # Versions 6.130.13 through 6.135.1 of `hypothesis` use syntax only
82
-    # available on Python 3.10 and later: `with (x as y, a as b)`
81
+    # `pytest` 8.4 and higher, and `hypothesis` versions 6.130.13
82
+    # through 6.135.1, use syntax only properly available on Python 3.10
83
+    # and later: `with (x as y, a as b)`.  However, those versions are
84
+    # not marked as incompatible with Python 3.9.
85
+    'pytest < 8.4 ; python_version < "3.10"',
83 86
     'hypothesis != 6.130.13, != 6.131.*, != 6.132.*, != 6.133.*, != 6.134.*, != 6.135.0, != 6.135.1 ; python_version < "3.10"',
84 87
 ]
85 88
 export = [
... ...
@@ -377,6 +380,7 @@ dependencies = [
377 380
     "pytest-randomly >= 3.15",
378 381
     "pytest-xdist >= 3.6.0",
379 382
     'pytest-xdist[psutil] >= 3.6.0; platform_python_implementation != "PyPy"',
383
+    'pytest < 8.4 ; python_version < "3.10"',
380 384
     'hypothesis != 6.130.13, != 6.131.*, != 6.132.*, != 6.133.*, != 6.134.*, != 6.135.0, != 6.135.1 ; python_version < "3.10"',
381 385
 ]
382 386
 matrix-name-format = '{variable}_{value}'
383 387