Mercurial > hg-stable
changeset 43291:a973a75e92bf
py3: add Python 3 exception output to test-hook.t
This is similar to, e.g., 3e9c6cef949b.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Fri, 18 Oct 2019 11:44:44 +0200 |
parents | e20bafd65a96 |
children | 3f1b4d1a90c3 |
files | tests/test-hook.t |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hook.t Fri Oct 18 12:12:56 2019 +0200 +++ b/tests/test-hook.t Fri Oct 18 11:44:44 2019 +0200 @@ -980,7 +980,8 @@ Traceback (most recent call last): ImportError: No module named hgext_syntaxerror Traceback (most recent call last): - HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed + HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !) + mercurial.error.HookLoadError: b'preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed' (py3 !) abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed $ echo '[hooks]' > ../a/.hg/hgrc @@ -1139,7 +1140,8 @@ Traceback (most recent call last): ImportError: No module named hgext_importfail Traceback (most recent call last): - HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed + HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !) + mercurial.error.HookLoadError: b'precommit.importfail hook is invalid: import of "importfail" failed' (py3 !) abort: precommit.importfail hook is invalid: import of "importfail" failed Issue1827: Hooks Update & Commit not completely post operation