summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2011-01-23 23:06:05 (GMT)
committerBrett Cannon <bcannon@gmail.com>2011-01-23 23:06:05 (GMT)
commitc3e8867a41eb5fec045380063d979ebd1933fb90 (patch)
tree83c24ff9b77ceb594f7f547a6d262376ec4ac407
parent6ef18f4fa38583fef9b4a8bcc37a0ce606d3ad42 (diff)
downloadcpython-c3e8867a41eb5fec045380063d979ebd1933fb90.zip
cpython-c3e8867a41eb5fec045380063d979ebd1933fb90.tar.gz
cpython-c3e8867a41eb5fec045380063d979ebd1933fb90.tar.bz2
Skip a recursion depth check test when running under CPython and have a trace
function set. Otherwise a Python fatal error about hitting an unrecoverable recursion depth gets triggered. Closes issue #10985. Code review by Georg Brandl.
-rw-r--r--Lib/test/test_sys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 50f0e93..52e7239 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -215,6 +215,8 @@ class SysModuleTest(unittest.TestCase):
self.assertEqual(sys.getrecursionlimit(), 10000)
sys.setrecursionlimit(oldlimit)
+ @unittest.skipIf(sys.gettrace(), 'fatal error if run with a trace function')
+ @test.support.cpython_only
def test_recursionlimit_recovery(self):
# NOTE: this test is slightly fragile in that it depends on the current
# recursion count when executing the test being low enough so as to