test: deal with changed error message on python 3.10
Differential Revision: https://phab.mercurial-scm.org/D12493
--- a/tests/test-parseindex.t Mon Dec 02 14:45:00 2019 +0100
+++ b/tests/test-parseindex.t Mon Apr 11 11:14:55 2022 +0200
@@ -111,7 +111,7 @@
10000: head out of range
-2: head out of range
-10000: head out of range
- None: an integer is required( .got type NoneType.)? (re)
+ None: (an integer is required( .got type NoneType.)?|'NoneType' object cannot be interpreted as an integer) (re)
good roots:
0: [0]
1: [1]
@@ -122,7 +122,7 @@
-2: []
-10000: []
bad roots:
- None: an integer is required( .got type NoneType.)? (re)
+ None: (an integer is required( .got type NoneType.)?|'NoneType' object cannot be interpreted as an integer) (re)
$ cd ..