hghave: we might need py310 and py311 at some point stable
authorAnton Shestakov <av6@dwimlabs.net>
Sun, 11 Dec 2022 16:46:29 +0400
branchstable
changeset 49783 3bbf1ad850f0
parent 49782 cafe34655335
child 49784 e45590649888
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.
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