[pypy-svn] r61395 - pypy/trunk/lib-python/modified-2.5.2/test

arigo at codespeak.net arigo at codespeak.net
Tue Jan 27 16:23:35 CET 2009


Author: arigo
Date: Tue Jan 27 16:23:32 2009
New Revision: 61395

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_doctest.py
Log:
(antocuni, arigo)
Remove the checking of some of the exact error messages.


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_doctest.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_doctest.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_doctest.py	Tue Jan 27 16:23:32 2009
@@ -804,7 +804,7 @@
         print 'pre-exception output', x//0
     Exception raised:
         ...
-        ZeroDivisionError: integer division or modulo by zero
+        ZeroDivisionError: ...
     (1, 2)
 
 Exception messages may contain newlines:
@@ -901,7 +901,7 @@
     Exception raised:
         Traceback (most recent call last):
         ...
-        ZeroDivisionError: integer division or modulo by zero
+        ZeroDivisionError: ...
     (1, 1)
 """
     def optionflags(): r"""
@@ -2096,7 +2096,7 @@
           favorite_color
       Exception raised:
           ...
-          NameError: name 'favorite_color' is not defined
+          NameError: ...favorite_color...
       <BLANKLINE>
       <BLANKLINE>
 
@@ -2149,7 +2149,7 @@
         favorite_color
     Exception raised:
         ...
-        NameError: name 'favorite_color' is not defined
+        NameError: ...favorite_color...
     **********************************************************************
     1 items had failures:
        1 of   2 in test_doctest.txt
@@ -2242,7 +2242,7 @@
         favorite_color
     Exception raised:
         ...
-        NameError: name 'favorite_color' is not defined
+        NameError: ...favorite_color...
     (1, 2)
     >>> doctest.master = None  # Reset master.
 



More information about the Pypy-commit mailing list