# HG changeset patch # User Anton Shestakov # Date 1670762789 -14400 # Node ID 3bbf1ad850f04e9c2118024208b69bbc6239b92f # Parent cafe34655335171f311758b44f6e1d5efc52c0c6 hghave: we might need py310 and py311 at some point Some tests are already showing slightly different results on Python 3.11. The better idea would be to make them more portable, but if that's not possible, now we can use hghave detection for certain lines. I wonder if there will ever be Python 31.0 and 31.1 though. diff -r cafe34655335 -r 3bbf1ad850f0 tests/hghave.py --- a/tests/hghave.py Sun Dec 11 16:44:50 2022 +0400 +++ b/tests/hghave.py Sun Dec 11 16:46:29 2022 +0400 @@ -877,7 +877,7 @@ # Add "py27", "py35", ... as possible feature checks. Note that there's no # punctuation here. -@checkvers("py", "Python >= %s", (2.7, 3.5, 3.6, 3.7, 3.8, 3.9)) +@checkvers("py", "Python >= %s", (2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11)) def has_python_range(v): major, minor = v.split('.')[0:2] py_major, py_minor = sys.version_info.major, sys.version_info.minor