mirror of
https://github.com/python/cpython
synced 2024-10-08 19:17:40 +00:00
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.
This commit is contained in:
parent
6ef18f4fa3
commit
c3e8867a41
|
@ -215,6 +215,8 @@ def test_recursionlimit(self):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue