comparison tests/test-debugcommands.t @ 48877:fcb34c099259

tests: remove __future__ import from test-debugcommands.t This one is slightly more involved since it affects test output. Differential Revision: https://phab.mercurial-scm.org/D12256
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 16:42:58 -0700
parents af0b21d5a930
children 75d0775dce7f
comparison
equal deleted inserted replaced
48876:42d2b31cee0b 48877:fcb34c099259
568 $ cd .. 568 $ cd ..
569 569
570 Test internal debugstacktrace command 570 Test internal debugstacktrace command
571 571
572 $ cat > debugstacktrace.py << EOF 572 $ cat > debugstacktrace.py << EOF
573 > from __future__ import absolute_import
574 > from mercurial import ( 573 > from mercurial import (
575 > util, 574 > util,
576 > ) 575 > )
577 > from mercurial.utils import ( 576 > from mercurial.utils import (
578 > procutil, 577 > procutil,
587 > util.dst(b'hi ...\\nfrom h hidden in g', 1, depth=2) 586 > util.dst(b'hi ...\\nfrom h hidden in g', 1, depth=2)
588 > f() 587 > f()
589 > EOF 588 > EOF
590 $ "$PYTHON" debugstacktrace.py 589 $ "$PYTHON" debugstacktrace.py
591 stacktrace at: 590 stacktrace at:
592 *debugstacktrace.py:16 in * (glob) 591 *debugstacktrace.py:15 in * (glob)
592 *debugstacktrace.py:8 in f (glob)
593 hello from g at:
594 *debugstacktrace.py:15 in * (glob)
593 *debugstacktrace.py:9 in f (glob) 595 *debugstacktrace.py:9 in f (glob)
594 hello from g at:
595 *debugstacktrace.py:16 in * (glob)
596 *debugstacktrace.py:10 in f (glob)
597 hi ... 596 hi ...
598 from h hidden in g at: 597 from h hidden in g at:
599 *debugstacktrace.py:10 in f (glob) 598 *debugstacktrace.py:9 in f (glob)
600 *debugstacktrace.py:13 in g (glob) 599 *debugstacktrace.py:12 in g (glob)
601 600
602 Test debugcapabilities command: 601 Test debugcapabilities command:
603 602
604 $ hg debugcapabilities ./debugrevlog/ 603 $ hg debugcapabilities ./debugrevlog/
605 Main capabilities: 604 Main capabilities: