Patchwork D5807: py3: add alternate output on Python 3

login
register
mail settings
Submitter phabricator
Date Feb. 3, 2019, 2:42 a.m.
Message ID <f1f4a9384e61d04ee07fb9e33f062caa@localhost.localdomain>
Download mbox | patch
Permalink /patch/38338/
State Not Applicable
Headers show

Comments

phabricator - Feb. 3, 2019, 2:42 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9955776e2adf: py3: add alternate output on Python 3 (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5807?vs=13707&id=13710

REVISION DETAIL
  https://phab.mercurial-scm.org/D5807

AFFECTED FILES
  tests/test-worker.t

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

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