test: deal with changed error message on python 3.10
authorJulien Cristau <jcristau@debian.org>
Mon, 11 Apr 2022 11:14:55 +0200
changeset 49052 34cdad07d06d
parent 49051 1d6c6ad645e1
child 49053 7d1daa1ef286
test: deal with changed error message on python 3.10 Differential Revision: https://phab.mercurial-scm.org/D12493
tests/test-parseindex.t
--- 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 ..