py3: add Python 3 exception output to test-hook.t
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 18 Oct 2019 11:44:44 +0200
changeset 43291 a973a75e92bf
parent 43290 e20bafd65a96
child 43292 3f1b4d1a90c3
py3: add Python 3 exception output to test-hook.t This is similar to, e.g., 3e9c6cef949b.
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