tests: update test-debugcommands.t stack trace checks for python3.9
authorAugie Fackler <augie@google.com>
Wed, 25 Mar 2020 12:06:49 -0400
changeset 44607 a7b7a67b79c1
parent 44606 862025f108c7
child 44608 7b9aaec17126
tests: update test-debugcommands.t stack trace checks for python3.9 Python 3.9 prints a complete filepath in more cases, so we need to handle that in our test output. Since we don't really care *that* much about the specific path formatting here, just use globbing. Differential Revision: https://phab.mercurial-scm.org/D8329
tests/test-debugcommands.t
--- a/tests/test-debugcommands.t	Wed Mar 25 12:05:53 2020 -0400
+++ b/tests/test-debugcommands.t	Wed Mar 25 12:06:49 2020 -0400
@@ -588,15 +588,15 @@
   > EOF
   $ "$PYTHON" debugstacktrace.py
   stacktrace at:
-   debugstacktrace.py:14 in * (glob)
-   debugstacktrace.py:7  in f
+   *debugstacktrace.py:14 in * (glob)
+   *debugstacktrace.py:7  in f (glob)
   hello from g at:
-   debugstacktrace.py:14 in * (glob)
-   debugstacktrace.py:8  in f
+   *debugstacktrace.py:14 in * (glob)
+   *debugstacktrace.py:8  in f (glob)
   hi ...
   from h hidden in g at:
-   debugstacktrace.py:8  in f
-   debugstacktrace.py:11 in g
+   *debugstacktrace.py:8  in f (glob)
+   *debugstacktrace.py:11 in g (glob)
 
 Test debugcapabilities command: