hghave: detect Python 3.10 and 3.11 as well stable
authorAnton Shestakov <av6@dwimlabs.net>
Sun, 11 Dec 2022 16:44:50 +0400
branchstable
changeset 49782 cafe34655335
parent 49781 f4a363b25859
child 49783 3bbf1ad850f0
hghave: detect Python 3.10 and 3.11 as well Noticed because test-contrib-relnotes.t was skipped.
tests/hghave.py
--- a/tests/hghave.py	Mon Dec 05 16:05:04 2022 -0500
+++ b/tests/hghave.py	Sun Dec 11 16:44:50 2022 +0400
@@ -895,7 +895,7 @@
     py = 'python3'
     if os.name == 'nt':
         py = 'py -3'
-    return matchoutput('%s -V' % py, br'^Python 3.(5|6|7|8|9)')
+    return matchoutput('%s -V' % py, br'^Python 3.(5|6|7|8|9|10|11)')
 
 
 @check("pure", "running with pure Python code")