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

fijal at codespeak.net fijal at codespeak.net
Thu Nov 20 19:32:36 CET 2008

Author: fijal
Date: Thu Nov 20 19:32:34 2008
New Revision: 60035

      - copied, changed from r59912, pypy/trunk/lib-python/2.5.2/test/test_isinstance.py
it's a bit harder to blow stack on top of PyPy (counting up to recursion
limit does not make any sense). This test now takes a while, but it's still
nothing compared to our tests :-) (3m on my machine)

Copied: pypy/trunk/lib-python/modified-2.5.2/test/test_isinstance.py (from r59912, pypy/trunk/lib-python/2.5.2/test/test_isinstance.py)
--- pypy/trunk/lib-python/2.5.2/test/test_isinstance.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_isinstance.py	Thu Nov 20 19:32:34 2008
@@ -260,7 +260,7 @@
     # Make sure that calling isinstance with a deeply nested tuple for its
     # argument will raise RuntimeError eventually.
     tuple_arg = (compare_to,)
-    for cnt in xrange(sys.getrecursionlimit()+5):
+    for cnt in xrange(sys.maxint):
         tuple_arg = (tuple_arg,)
         fxn(arg, tuple_arg)

More information about the Pypy-commit mailing list