pycompat: filter more of the traceback in `test-flagproccessor.t` stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 26 Oct 2024 05:11:58 +0200
branchstable
changeset 52121 05bb54a3ef26
parent 52120 49aeeda97c14
child 52122 50415066cb66
pycompat: filter more of the traceback in `test-flagproccessor.t` The traceback changes again with 3.13. So we filter it to only keeps the bits we care about. This is actually only reusing the approach from a few line below.
tests/test-flagprocessor.t
--- a/tests/test-flagprocessor.t	Fri Oct 25 00:46:22 2024 +0200
+++ b/tests/test-flagprocessor.t	Sat Oct 26 05:11:58 2024 +0200
@@ -203,20 +203,8 @@
   > extension=$TESTDIR/flagprocessorext.py
   > duplicate=$TESTDIR/flagprocessorext.py
   > EOF
-  $ hg debugrebuilddirstate
-  Traceback (most recent call last):
-    File "*/mercurial/extensions.py", line *, in _runextsetup (glob) (no-pyoxidizer !)
-    File "mercurial.extensions", line *, in _runextsetup (glob) (pyoxidizer !)
-      extsetup(ui)
+  $ hg debugrebuilddirstate 2>&1 | grep -E 'cannot register multiple processors|flagprocessorext'
     File "*/tests/flagprocessorext.py", line *, in extsetup (glob)
-      flagutil.addflagprocessor( (py38 !)
-      validatehash, (no-py38 !)
-    File "*/mercurial/revlogutils/flagutil.py", line *, in addflagprocessor (glob) (no-pyoxidizer !)
-    File "mercurial.revlogutils.flagutil", line *, in addflagprocessor (glob) (pyoxidizer !)
-      insertflagprocessor(flag, processor, flagprocessors)
-    File "*/mercurial/revlogutils/flagutil.py", line *, in insertflagprocessor (glob) (no-pyoxidizer !)
-    File "mercurial.revlogutils.flagutil", line *, in insertflagprocessor (glob) (pyoxidizer !)
-      raise error.Abort(msg)
   mercurial.error.Abort: cannot register multiple processors on flag '0x8'.
   *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'.
   $ hg st 2>&1 | grep -E 'cannot register multiple processors|flagprocessorext'