[pypy-svn] r58741 - pypy/branch/2.5-merge/lib-python/modified-2.5.2/test

arigo at codespeak.net arigo at codespeak.net
Tue Oct 7 14:43:27 CEST 2008


Author: arigo
Date: Tue Oct  7 14:43:26 2008
New Revision: 58741

Modified:
   pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_builtin.py
Log:
Disabling an implementation detail test.


Modified: pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_builtin.py
==============================================================================
--- pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_builtin.py	(original)
+++ pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_builtin.py	Tue Oct  7 14:43:26 2008
@@ -1438,10 +1438,13 @@
         self.assertRaises(ValueError, range, 1, 2, 0)
         self.assertRaises(ValueError, range, a, a + 1, long(0))
 
-        class badzero(int):
-            def __cmp__(self, other):
-                raise RuntimeError
-        self.assertRaises(RuntimeError, range, a, a + 1, badzero(1))
+        # XXX the following seems to test a complete implementation
+        #     detail (it is probably checking a specific error path
+        #     in the C code)
+        #class badzero(int):
+        #    def __cmp__(self, other):
+        #        raise RuntimeError
+        #self.assertRaises(RuntimeError, range, a, a + 1, badzero(1))
 
         # Reject floats when it would require PyLongs to represent.
         # (smaller floats still accepted, but deprecated)



More information about the Pypy-commit mailing list