##// END OF EJS Templates
py3: adjust expected traceback in test-hook.t...
Denis Laxalde -
r43587:d0f89e8c default
parent child Browse files
Show More
@@ -975,9 +975,18 b' test python hooks'
975 975 Traceback (most recent call last):
976 976 SyntaxError: * (glob)
977 977 exception from second failed import attempt:
978 Traceback (most recent call last): (py3 !)
979 SyntaxError: * (glob) (py3 !)
978 980 Traceback (most recent call last):
979 ImportError: No module named hgext_syntaxerror
981 ImportError: No module named hgext_syntaxerror (no-py3 !)
982 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
983 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
980 984 Traceback (most recent call last):
985 SyntaxError: * (glob) (py3 !)
986 Traceback (most recent call last): (py3 !)
987 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
988 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
989 Traceback (most recent call last): (py3 !)
981 990 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !)
982 991 mercurial.error.HookLoadError: b'preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed' (py3 !)
983 992 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
@@ -1133,10 +1142,23 b' make sure --traceback works on hook impo'
1133 1142 $ hg --traceback commit -ma 2>&1 | egrep '^exception|ImportError|ModuleNotFoundError|Traceback|HookLoadError|abort'
1134 1143 exception from first failed import attempt:
1135 1144 Traceback (most recent call last):
1136 ImportError: No module named somebogusmodule
1145 ImportError: No module named somebogusmodule (no-py3 !)
1146 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1147 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1137 1148 exception from second failed import attempt:
1149 Traceback (most recent call last): (py3 !)
1150 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1151 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1152 Traceback (most recent call last): (py3 !)
1153 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1154 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1155 Traceback (most recent call last): (py3 !)
1156 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1157 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1138 1158 Traceback (most recent call last):
1139 ImportError: No module named hgext_importfail
1159 ImportError: No module named hgext_importfail (no-py3 !)
1160 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1161 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1140 1162 Traceback (most recent call last):
1141 1163 HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !)
1142 1164 mercurial.error.HookLoadError: b'precommit.importfail hook is invalid: import of "importfail" failed' (py3 !)
General Comments 0
You need to be logged in to leave comments. Login now