[pypy-svn] r60858 - pypy/trunk/pypy/module/__builtin__/test

pedronis at codespeak.net pedronis at codespeak.net
Fri Jan 9 14:47:38 CET 2009


Author: pedronis
Date: Fri Jan  9 14:47:37 2009
New Revision: 60858

Modified:
   pypy/trunk/pypy/module/__builtin__/test/test_builtin.py
Log:
(bea, pedronis)

this test exhaust all memory right now when run with py.test -A with a stackless build, for now check for that
situation and skip it then



Modified: pypy/trunk/pypy/module/__builtin__/test/test_builtin.py
==============================================================================
--- pypy/trunk/pypy/module/__builtin__/test/test_builtin.py	(original)
+++ pypy/trunk/pypy/module/__builtin__/test/test_builtin.py	Fri Jan  9 14:47:37 2009
@@ -307,6 +307,11 @@
         raises(RuntimeError, cmp, c1, c2)
 
     def test_cmp_cyclic(self):
+        import sys
+        if hasattr(sys, 'pypy_translation_info'):
+            if sys.pypy_translation_info.get('translation.stackless'):
+                skip("this consumes all memory with stackless")
+
         if not self.sane_lookup:
             skip("underlying Python implementation has insane dict lookup")
         a = []; a.append(a)



More information about the Pypy-commit mailing list