pypy: fix overspecific test checks
authorMaciej Fijalkowski <fijall@gmail.com>
Sun, 03 Apr 2016 08:26:57 +0100
changeset 28737 a3a01194a337
parent 28736 403b0a7ab410
child 28738 706f4ab710c8
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
tests/test-bad-extension.t
tests/test-hook.t
--- a/tests/test-bad-extension.t	Sun Apr 03 10:02:58 2016 +0300
+++ b/tests/test-bad-extension.t	Sun Apr 03 08:26:57 2016 +0100
@@ -56,9 +56,9 @@
   could not import hgext.badext2 (No module named *badext2): trying badext2 (glob)
   Traceback (most recent call last):
   ImportError: No module named *badext2 (glob)
-  could not import hgext3rd.badext2 (No module named badext2): trying badext2
+  could not import hgext3rd.badext2 (No module named *badext2): trying badext2 (glob)
   Traceback (most recent call last):
-  ImportError: No module named badext2
+  ImportError: No module named *badext2 (glob)
   *** failed to import extension badext2: No module named badext2
   Traceback (most recent call last):
   ImportError: No module named badext2
--- a/tests/test-hook.t	Sun Apr 03 10:02:58 2016 +0300
+++ b/tests/test-hook.t	Sun Apr 03 08:26:57 2016 +0100
@@ -537,7 +537,7 @@
   searching for changes
   exception from first failed import attempt:
   Traceback (most recent call last):
-  SyntaxError: invalid syntax
+  SyntaxError: * (glob)
   exception from second failed import attempt:
   Traceback (most recent call last):
   ImportError: No module named hgext_syntaxerror