Mercurial > public > mercurial-scm > hg
diff tests/test-flagprocessor.t @ 43402:40bf3d7ecc42 stable
py3: add a __str__ method to Abort
This improves the rendering of some exceptions by avoiding raw
bytestrings, especially when using --traceback option.
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Mon, 04 Nov 2019 16:13:01 +0100 |
parents | 2372284d9457 |
children | 35cd52c4a5cc |
line wrap: on
line diff
--- a/tests/test-flagprocessor.t Mon Nov 04 16:04:09 2019 +0100 +++ b/tests/test-flagprocessor.t Mon Nov 04 16:13:01 2019 +0100 @@ -209,12 +209,12 @@ insertflagprocessor(flag, processor, flagprocessors) File "*/mercurial/revlogutils/flagutil.py", line *, in insertflagprocessor (glob) raise error.Abort(msg) - mercurial.error.Abort: b"cannot register multiple processors on flag '0x8'." (py3 !) + mercurial.error.Abort: cannot register multiple processors on flag '0x8'. (py3 !) Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. $ hg st 2>&1 | egrep 'cannot register multiple processors|flagprocessorext' File "*/tests/flagprocessorext.py", line *, in extsetup (glob) - mercurial.error.Abort: b"cannot register multiple processors on flag '0x8'." (py3 !) + mercurial.error.Abort: cannot register multiple processors on flag '0x8'. (py3 !) Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. File "*/tests/flagprocessorext.py", line *, in b64decode (glob)