changeset 52089:0b17a0578a48 stable

py-3-13: fix traceback matching for the new Python version
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 24 Oct 2024 15:35:45 +0200
parents 51057ab0dffa
children 7862a5ac35cf
files tests/test-bad-extension.t tests/test-extension.t tests/test-http-bad-server.t
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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