mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
This commit is contained in:
parent
6c502ba809
commit
17b73ab99e
13 changed files with 41 additions and 39 deletions
|
|
@ -1126,7 +1126,7 @@ class AST_Tests(unittest.TestCase):
|
|||
def test_ast_recursion_limit(self):
|
||||
fail_depth = support.EXCEEDS_RECURSION_LIMIT
|
||||
crash_depth = 100_000
|
||||
success_depth = 1200
|
||||
success_depth = int(support.Py_C_RECURSION_LIMIT * 0.8)
|
||||
if _testinternalcapi is not None:
|
||||
remaining = _testinternalcapi.get_c_recursion_remaining()
|
||||
success_depth = min(success_depth, remaining)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue