##// END OF EJS Templates
py3: byteify extension in test-debugcommands.t
Matt Harbison -
r39937:8a42aa04 default
parent child Browse files
Show More
@@ -532,29 +532,31 b' Test internal debugstacktrace command'
532 532
533 533 $ cat > debugstacktrace.py << EOF
534 534 > from __future__ import absolute_import
535 > import sys
536 > from mercurial import util
535 > from mercurial import (
536 > pycompat,
537 > util,
538 > )
537 539 > def f():
538 > util.debugstacktrace(f=sys.stdout)
540 > util.debugstacktrace(f=pycompat.stdout)
539 541 > g()
540 542 > def g():
541 > util.dst('hello from g\\n', skip=1)
543 > util.dst(b'hello from g\\n', skip=1)
542 544 > h()
543 545 > def h():
544 > util.dst('hi ...\\nfrom h hidden in g', 1, depth=2)
546 > util.dst(b'hi ...\\nfrom h hidden in g', 1, depth=2)
545 547 > f()
546 548 > EOF
547 549 $ "$PYTHON" debugstacktrace.py
548 550 stacktrace at:
549 debugstacktrace.py:12 in * (glob)
550 debugstacktrace.py:5 in f
551 debugstacktrace.py:14 in * (glob)
552 debugstacktrace.py:7 in f
551 553 hello from g at:
552 debugstacktrace.py:12 in * (glob)
553 debugstacktrace.py:6 in f
554 debugstacktrace.py:14 in * (glob)
555 debugstacktrace.py:8 in f
554 556 hi ...
555 557 from h hidden in g at:
556 debugstacktrace.py:6 in f
557 debugstacktrace.py:9 in g
558 debugstacktrace.py:8 in f
559 debugstacktrace.py:11 in g
558 560
559 561 Test debugcapabilities command:
560 562
General Comments 0
You need to be logged in to leave comments. Login now