[PATCH V2] tests: test-debugcommands.t also matches stack trace on python 2.4

Simon Heimberg simohe at besonet.ch
Fri Jan 17 12:47:23 CST 2014


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1389984383 -3600
# Node ID d27e19c723dae972d5606978fc1c41c71efeb2f1
# Parent  48d1047cc38de00db54aff32f4389571a713d16b
tests: test-debugcommands.t also matches stack trace on python 2.4

Some versions of python 2.4 write ? instead of <module>. Ignore this detail by
a glob.
This fixes a failure spotted on buildbot, existing since this test lines were
introduced 47d0843647d1.

diff -r 48d1047cc38d -r d27e19c723da tests/test-debugcommands.t
--- a/tests/test-debugcommands.t	Fre Jan 17 19:22:31 2014 +0100
+++ b/tests/test-debugcommands.t	Fre Jan 17 19:46:23 2014 +0100
@@ -38,10 +38,10 @@
   > EOF
   $ python debugstacktrace.py
   hello world at:
-   debugstacktrace.py:7 in <module>
+   debugstacktrace.py:7 in * (glob)
    debugstacktrace.py:5 in g
    debugstacktrace.py:3 in f
   stacktrace at:
-   debugstacktrace.py:7 *in <module> (glob)
+   debugstacktrace.py:7 *in * (glob)
    debugstacktrace.py:6 *in g (glob)
    */util.py:* in debugstacktrace (glob)


More information about the Mercurial-devel mailing list