comparison tests/test-hook.t @ 49876:950c39918bd2

tests: drop `(py3 !)` output matching predicates Presumably these were paired with `(no-py3 !)` at one point, but now they were unconditionally true. test-check-code.t required a couple of `(glob)` markers on the changed lines in test-lfs-serve-access.t, because of the `$LOCALIP` usage on those lines. Not sure how those lines slipped through the checks previously.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 04 Jan 2023 00:16:52 -0500
parents 42d2b31cee0b
children f68b0a5d3211
comparison
equal deleted inserted replaced
49875:a77c1375c316 49876:950c39918bd2
973 searching for changes 973 searching for changes
974 exception from first failed import attempt: 974 exception from first failed import attempt:
975 Traceback (most recent call last): 975 Traceback (most recent call last):
976 SyntaxError: * (glob) 976 SyntaxError: * (glob)
977 exception from second failed import attempt: 977 exception from second failed import attempt:
978 Traceback (most recent call last): (py3 !) 978 Traceback (most recent call last):
979 SyntaxError: * (glob) (py3 !) 979 SyntaxError: * (glob)
980 Traceback (most recent call last): 980 Traceback (most recent call last):
981 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !) 981 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
982 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !) 982 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
983 Traceback (most recent call last): 983 Traceback (most recent call last):
984 SyntaxError: * (glob) (py3 !) 984 SyntaxError: * (glob)
985 Traceback (most recent call last): (py3 !) 985 Traceback (most recent call last):
986 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !) 986 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
987 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !) 987 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
988 Traceback (most recent call last): (py3 !) 988 Traceback (most recent call last):
989 raise error.HookLoadError( (py38 !) 989 raise error.HookLoadError( (py38 !)
990 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !) 990 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
991 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed 991 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
992 992
993 $ echo '[hooks]' > ../a/.hg/hgrc 993 $ echo '[hooks]' > ../a/.hg/hgrc
994 $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc 994 $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc
995 $ hg pull ../a 995 $ hg pull ../a
1118 abort: $ENOENT$: '$TESTTMP/d/repo/nonexistent.py' 1118 abort: $ENOENT$: '$TESTTMP/d/repo/nonexistent.py'
1119 [255] 1119 [255]
1120 1120
1121 $ hg id 1121 $ hg id
1122 loading pre-identify.npmd hook failed: 1122 loading pre-identify.npmd hook failed:
1123 abort: No module named 'repo' (py3 !) 1123 abort: No module named 'repo'
1124 [255] 1124 [255]
1125 1125
1126 $ cd ../../b 1126 $ cd ../../b
1127 1127
1128 make sure --traceback works on hook import failure 1128 make sure --traceback works on hook import failure
1141 exception from first failed import attempt: 1141 exception from first failed import attempt:
1142 Traceback (most recent call last): 1142 Traceback (most recent call last):
1143 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1143 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1144 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !) 1144 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1145 exception from second failed import attempt: 1145 exception from second failed import attempt:
1146 Traceback (most recent call last): (py3 !) 1146 Traceback (most recent call last):
1147 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1147 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1148 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !) 1148 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1149 Traceback (most recent call last): (py3 !) 1149 Traceback (most recent call last):
1150 ImportError: No module named 'hgext_importfail' (py3 no-py36 !) 1150 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1151 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !) 1151 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1152 Traceback (most recent call last): (py3 !) 1152 Traceback (most recent call last):
1153 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1153 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1154 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !) 1154 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1155 Traceback (most recent call last): 1155 Traceback (most recent call last):
1156 ImportError: No module named 'hgext_importfail' (py3 no-py36 !) 1156 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1157 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !) 1157 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1158 Traceback (most recent call last): 1158 Traceback (most recent call last):
1159 raise error.HookLoadError( (py38 !) 1159 raise error.HookLoadError( (py38 !)
1160 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !) 1160 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed
1161 abort: precommit.importfail hook is invalid: import of "importfail" failed 1161 abort: precommit.importfail hook is invalid: import of "importfail" failed
1162 1162
1163 Issue1827: Hooks Update & Commit not completely post operation 1163 Issue1827: Hooks Update & Commit not completely post operation
1164 1164
1165 commit and update hooks should run after command completion. The largefiles 1165 commit and update hooks should run after command completion. The largefiles