[pypy-svn] r79887 - pypy/branch/fast-forward/lib-python/modified-2.7.0/test
afa at codespeak.net
afa at codespeak.net
Wed Dec 8 10:33:46 CET 2010
Author: afa
Date: Wed Dec 8 10:33:43 2010
New Revision: 79887
Added:
pypy/branch/fast-forward/lib-python/modified-2.7.0/test/list_tests.py
- copied, changed from r79885, pypy/branch/fast-forward/lib-python/2.7.0/test/list_tests.py
Log:
pypy doesn't respect sys.getrecursionlimit() anymore.
Use some large number instead.
Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/list_tests.py (from r79885, pypy/branch/fast-forward/lib-python/2.7.0/test/list_tests.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/list_tests.py (original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/list_tests.py Wed Dec 8 10:33:43 2010
@@ -45,8 +45,12 @@
self.assertEqual(str(a2), "[0, 1, 2, [...], 3]")
self.assertEqual(repr(a2), "[0, 1, 2, [...], 3]")
+ if test_support.check_impl_detail():
+ depth = sys.getrecursionlimit() + 100
+ else:
+ depth = 1000 * 1000 # should be enough to exhaust the stack
l0 = []
- for i in xrange(sys.getrecursionlimit() + 100):
+ for i in xrange(depth):
l0 = [l0]
self.assertRaises(RuntimeError, repr, l0)
More information about the Pypy-commit
mailing list