# HG changeset patch # User Denis Laxalde # Date 1571391884 -7200 # Node ID a973a75e92bfcb7c800e27f3590802383a17d510 # Parent e20bafd65a96cd03a783a00d5d650ad0a2f770a2 py3: add Python 3 exception output to test-hook.t This is similar to, e.g., 3e9c6cef949b. diff -r e20bafd65a96 -r a973a75e92bf tests/test-hook.t --- 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