Patchwork D12493: test: deal with changed error message on python 3.10

login
register
mail settings
Submitter phabricator
Date April 11, 2022, 10:13 a.m.
Message ID <differential-rev-PHID-DREV-tk3hz4v5c45xyiyh5ztn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50839/
State New
Headers show

Comments

phabricator - April 11, 2022, 10:13 a.m.
jcristau created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12493

AFFECTED FILES
  tests/test-parseindex.t

CHANGE DETAILS




To: jcristau, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-parseindex.t b/tests/test-parseindex.t
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -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 ..