[pypy-svn] r50789 - pypy/dist/pypy/module/__builtin__/test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Jan 19 23:06:06 CET 2008


Author: cfbolz
Date: Sat Jan 19 23:06:05 2008
New Revision: 50789

Modified:
   pypy/dist/pypy/module/__builtin__/test/test_classobj.py
Log:
this works fine with CPython, but obviously only from version 2.5 on :-)


Modified: pypy/dist/pypy/module/__builtin__/test/test_classobj.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/test/test_classobj.py	(original)
+++ pypy/dist/pypy/module/__builtin__/test/test_classobj.py	Sat Jan 19 23:06:05 2008
@@ -487,8 +487,8 @@
 
     def test_index(self):
         import sys
-        if not hasattr(sys, 'pypy_objspaceclass'):
-            skip("this is not supported by CPython")
+        if sys.version_info < (2, 5):
+            skip("this is not supported by CPython before version 2.4")
         class A:
             def __index__(self):
                 return 1



More information about the Pypy-commit mailing list