py-3-13: fix traceback matching for the new Python version stable
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 24 Oct 2024 15:35:45 +0200
branchstable
changeset 52089 0b17a0578a48
parent 52088 51057ab0dffa
child 52090 7862a5ac35cf
py-3-13: fix traceback matching for the new Python version
tests/test-bad-extension.t
tests/test-extension.t
tests/test-http-bad-server.t
--- a/tests/test-bad-extension.t	Thu Oct 24 15:23:52 2024 +0200
+++ b/tests/test-bad-extension.t	Thu Oct 24 15:35:45 2024 +0200
@@ -23,6 +23,7 @@
     File "*/mercurial/dispatch.py", line *, in _runexithandlers (glob) (no-pyoxidizer !)
     File "mercurial.dispatch", line *, in _runexithandlers (glob) (pyoxidizer !)
       func(*args, **kwargs)
+      ~~~~^^^^^^^^^^^^^^^^^ (py313 !)
     File "$TESTTMP/bailatexit.py", line *, in bail (glob)
       raise RuntimeError('ui.atexit handler exception')
   RuntimeError: ui.atexit handler exception
--- a/tests/test-extension.t	Thu Oct 24 15:23:52 2024 +0200
+++ b/tests/test-extension.t	Thu Oct 24 15:35:45 2024 +0200
@@ -596,6 +596,7 @@
     File "*/mercurial/extensions.py", line *, in _runuisetup (glob) (no-pyoxidizer !)
     File "mercurial.extensions", line *, in _runuisetup (glob) (pyoxidizer !)
       uisetup(ui)
+      ~~~~~~~^^^^ (py313 !)
     File "$TESTTMP/baduisetup.py", line 2, in uisetup
       1 / 0
       ~~^~~ (py311 !)
--- a/tests/test-http-bad-server.t	Thu Oct 24 15:23:52 2024 +0200
+++ b/tests/test-http-bad-server.t	Thu Oct 24 15:35:45 2024 +0200
@@ -246,6 +246,8 @@
   read limit reached; closing socket
   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   Traceback (most recent call last):
+          rctx, req, res, self.check_perm (py313 !)
+      ) (py313 !)
   Exception: connection closed after receiving N bytes