Skip to content
Snippets Groups Projects
Commit 05bb54a3ef26 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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.
parent 49aeeda97c14
No related branches found
No related tags found
2 merge requests!1034merge stable into default (again, to hopefully have 3.13 green),!1021more Python 3.13 compatibility fixes
......@@ -203,9 +203,5 @@
> 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)
......@@ -211,12 +207,4 @@
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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment