mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00: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
|
|
@ -3037,10 +3037,8 @@ class TestExtendedArgs(unittest.TestCase):
|
|||
self.assertEqual(counts, {'call': 1, 'line': 301, 'return': 1})
|
||||
|
||||
def test_trace_lots_of_globals(self):
|
||||
count = 1000
|
||||
if _testinternalcapi is not None:
|
||||
remaining = _testinternalcapi.get_c_recursion_remaining()
|
||||
count = min(count, remaining)
|
||||
|
||||
count = min(1000, int(support.Py_C_RECURSION_LIMIT * 0.8))
|
||||
|
||||
code = """if 1:
|
||||
def f():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue