Mercurial > hg
comparison tests/test-debugcommands.t @ 20543:01df3660eb11
tests: backout a82de9dc4f77, debugstacktrace is now stable, drop workaround
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 20 Feb 2014 02:38:41 +0100 |
parents | a82de9dc4f77 |
children | 76effa770ff9 |
comparison
equal
deleted
inserted
replaced
20542:be27652675ce | 20543:01df3660eb11 |
---|---|
31 > from mercurial.util import debugstacktrace, dst, sys | 31 > from mercurial.util import debugstacktrace, dst, sys |
32 > def f(): | 32 > def f(): |
33 > dst('hello world') | 33 > dst('hello world') |
34 > def g(): | 34 > def g(): |
35 > f() | 35 > f() |
36 > sys.stderr.flush() | |
37 > debugstacktrace(skip=-5, f=sys.stdout) | 36 > debugstacktrace(skip=-5, f=sys.stdout) |
38 > g() | 37 > g() |
39 > EOF | 38 > EOF |
40 $ python debugstacktrace.py | 39 $ python debugstacktrace.py |
41 hello world at: | 40 hello world at: |
42 debugstacktrace.py:8 in * (glob) | 41 debugstacktrace.py:7 in * (glob) |
43 debugstacktrace.py:5 in g | 42 debugstacktrace.py:5 in g |
44 debugstacktrace.py:3 in f | 43 debugstacktrace.py:3 in f |
45 stacktrace at: | 44 stacktrace at: |
46 debugstacktrace.py:8 *in * (glob) | 45 debugstacktrace.py:7 *in * (glob) |
47 debugstacktrace.py:7 *in g (glob) | 46 debugstacktrace.py:6 *in g (glob) |
48 */util.py:* in debugstacktrace (glob) | 47 */util.py:* in debugstacktrace (glob) |