D5807: py3: add alternate output on Python 3
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sat Feb 2 21:17:22 UTC 2019
indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This is basically the same deal as https://phab.mercurial-scm.org/D5806. Python 3's exception
printing output is different.
We had to tweak the regular expression to match appropriately,
hence the added line of output.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5807
AFFECTED FILES
tests/test-worker.t
CHANGE DETAILS
diff --git a/tests/test-worker.t b/tests/test-worker.t
--- a/tests/test-worker.t
+++ b/tests/test-worker.t
@@ -83,8 +83,10 @@
[255]
$ hg --config "extensions.t=$abspath" --config 'worker.numcpus=8' \
- > test 100000.0 abort --traceback 2>&1 | egrep '^(SystemExit|Abort)'
- Abort: known exception
+ > test 100000.0 abort --traceback 2>&1 | egrep '(SystemExit|Abort)'
+ raise error.Abort(b'known exception')
+ mercurial.error.Abort: b'known exception' (py3 !)
+ Abort: known exception (no-py3 !)
SystemExit: 255
Traceback must be printed for unknown exceptions
To: indygreg, #hg-reviewers
Cc: mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list