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

fijal at codespeak.net fijal at codespeak.net
Thu Nov 20 14:14:38 CET 2008


Author: fijal
Date: Thu Nov 20 14:14:37 2008
New Revision: 60019

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_format.py
Log:
I take the liberty to say that calling __oct__ is not working (it either raises
TypeError, as tested, or SystemError, untested and never succeeds)


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_format.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_format.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_format.py	Thu Nov 20 14:14:37 2008
@@ -1,4 +1,4 @@
-from test.test_support import verbose, have_unicode, TestFailed
+from test.test_support import verbose, have_unicode, TestFailed, check_impl_detail
 import sys
 from test.test_support import MAX_Py_ssize_t
 maxsize = MAX_Py_ssize_t
@@ -251,8 +251,9 @@
         # Returning a non-string should not blow up.
         return self + 1
 
-test_exc('%o', Foobar(), TypeError,
-         "expected string or Unicode object, long found")
+if check_impl_detail:
+    test_exc('%o', Foobar(), TypeError,
+             "expected string or Unicode object, long found")
 
 if maxsize == 2**31-1:
     # crashes 2.2.1 and earlier:



More information about the Pypy-commit mailing list