[pypy-svn] r15625 - pypy/dist/lib-python/modified-2.4.1/test

pedronis at codespeak.net pedronis at codespeak.net
Thu Aug 4 17:03:29 CEST 2005


Author: pedronis
Date: Thu Aug  4 17:03:28 2005
New Revision: 15625

Added:
   pypy/dist/lib-python/modified-2.4.1/test/test_coercion.py
      - copied, changed from r15615, pypy/dist/lib-python/2.4.1/test/test_coercion.py
Log:
we need a modified test_coercion because our exceptions are new style with a different __str__ repr



Copied: pypy/dist/lib-python/modified-2.4.1/test/test_coercion.py (from r15615, pypy/dist/lib-python/2.4.1/test/test_coercion.py)
==============================================================================
--- pypy/dist/lib-python/2.4.1/test/test_coercion.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_coercion.py	Thu Aug  4 17:03:28 2005
@@ -96,7 +96,7 @@
                     x = eval('a %s b' % op)
                 except:
                     error = sys.exc_info()[:2]
-                    print '... %s' % error[0]
+                    print '... %s' % (error[0].__module__+'.'+error[0].__name__)
                 else:
                     print '=', format_result(x)
                 try:
@@ -108,7 +108,7 @@
                     exec('z %s= b' % op)
                 except:
                     error = sys.exc_info()[:2]
-                    print '... %s' % error[0]
+                    print '... %s' % (error[0].__module__+'.'+error[0].__name__)
                 else:
                     print '=>', format_result(z)
 
@@ -121,7 +121,7 @@
                     x = eval('%s(a, b)' % op)
                 except:
                     error = sys.exc_info()[:2]
-                    print '... %s' % error[0]
+                    print '... %s' % (error[0].__module__+'.'+error[0].__name__)
                 else:
                     print '=', format_result(x)
 



More information about the Pypy-commit mailing list