[pypy-svn] r67726 - pypy/trunk/pypy/rlib/test

arigo at codespeak.net arigo at codespeak.net
Thu Sep 17 11:10:14 CEST 2009


Author: arigo
Date: Thu Sep 17 11:10:13 2009
New Revision: 67726

Modified:
   pypy/trunk/pypy/rlib/test/test_rgc.py
Log:
Skip this test on Python < 2.5.


Modified: pypy/trunk/pypy/rlib/test/test_rgc.py
==============================================================================
--- pypy/trunk/pypy/rlib/test/test_rgc.py	(original)
+++ pypy/trunk/pypy/rlib/test/test_rgc.py	Thu Sep 17 11:10:13 2009
@@ -2,7 +2,7 @@
 from pypy.rpython.lltypesystem import lltype
 from pypy.rlib import rgc # Force registration of gc.collect
 import gc
-import py
+import py, sys
 
 def test_collect():
     def f():
@@ -20,6 +20,9 @@
     assert res is None
 
 def test_collect_0():
+    if sys.version_info < (2, 5):
+        py.test.skip("requires Python 2.5 to call gc.collect() with an arg")
+
     def f():
         return gc.collect(0)
 



More information about the Pypy-commit mailing list