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

login
register
mail settings
Submitter Simon Heimberg
Date Jan. 17, 2014, 6:47 p.m.
Message ID <d27e19c723dae972d560.1389984443@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/3373/
State Accepted
Commit 2b96073f31382ae800b5726d23b4f62a11ad4dd0
Headers show

Comments

Simon Heimberg - Jan. 17, 2014, 6:47 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@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.
Matt Mackall - Jan. 17, 2014, 9:21 p.m.
On Fri, 2014-01-17 at 19:47 +0100, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe@besonet.ch>
> # Date 1389984383 -3600
> # Node ID d27e19c723dae972d5606978fc1c41c71efeb2f1
> # Parent  48d1047cc38de00db54aff32f4389571a713d16b
> tests: test-debugcommands.t also matches stack trace on python 2.4

Queued for default, thanks.

Patch

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)