comparison tests/test-hook.t @ 44121:51fb449bd1a2

py3: add extra traceback line present on Python 3.8 I'm not sure why Python 3.8 is outputting this line. It appears to be a change in behavior of formatting tracebacks on Python 3.8. So let's add it to expected output. With this change, test-hook.t now passes on Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D7946
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 18 Jan 2020 10:27:03 -0800
parents 40bf3d7ecc42
children 09da5cf44772
comparison
equal deleted inserted replaced
44120:35cd52c4a5cc 44121:51fb449bd1a2
986 Traceback (most recent call last): (py3 !) 986 Traceback (most recent call last): (py3 !)
987 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !) 987 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
988 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !) 988 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
989 Traceback (most recent call last): (py3 !) 989 Traceback (most recent call last): (py3 !)
990 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !) 990 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !)
991 raise error.HookLoadError( (py38 !)
991 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !) 992 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !)
992 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed 993 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
993 994
994 $ echo '[hooks]' > ../a/.hg/hgrc 995 $ echo '[hooks]' > ../a/.hg/hgrc
995 $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc 996 $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc
1159 ImportError: No module named hgext_importfail (no-py3 !) 1160 ImportError: No module named hgext_importfail (no-py3 !)
1160 ImportError: No module named 'hgext_importfail' (py3 no-py36 !) 1161 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1161 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !) 1162 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1162 Traceback (most recent call last): 1163 Traceback (most recent call last):
1163 HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !) 1164 HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !)
1165 raise error.HookLoadError( (py38 !)
1164 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !) 1166 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !)
1165 abort: precommit.importfail hook is invalid: import of "importfail" failed 1167 abort: precommit.importfail hook is invalid: import of "importfail" failed
1166 1168
1167 Issue1827: Hooks Update & Commit not completely post operation 1169 Issue1827: Hooks Update & Commit not completely post operation
1168 1170