comparison tests/test-hook.t @ 28737:a3a01194a337

pypy: fix overspecific test checks Those tests check a bit too specific message in ImportError/SyntaxError. Make test-hook and test-bad-extension pass on pypy
author Maciej Fijalkowski <fijall@gmail.com>
date Sun, 03 Apr 2016 08:26:57 +0100
parents 12fdf49fa4dd
children ea1fec3e9aba
comparison
equal deleted inserted replaced
28736:403b0a7ab410 28737:a3a01194a337
535 $ hg pull ../a --traceback 2>&1 | egrep -v '^( +File| [_a-zA-Z*(])' | egrep -v '^( )+(\^)?$' 535 $ hg pull ../a --traceback 2>&1 | egrep -v '^( +File| [_a-zA-Z*(])' | egrep -v '^( )+(\^)?$'
536 pulling from ../a 536 pulling from ../a
537 searching for changes 537 searching for changes
538 exception from first failed import attempt: 538 exception from first failed import attempt:
539 Traceback (most recent call last): 539 Traceback (most recent call last):
540 SyntaxError: invalid syntax 540 SyntaxError: * (glob)
541 exception from second failed import attempt: 541 exception from second failed import attempt:
542 Traceback (most recent call last): 542 Traceback (most recent call last):
543 ImportError: No module named hgext_syntaxerror 543 ImportError: No module named hgext_syntaxerror
544 Traceback (most recent call last): 544 Traceback (most recent call last):
545 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed 545 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed