mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
gh-90473: Reduce recursion limit on WASI even further (GH-94333)
750 fails sometimes with newer wasmtime versions. 600 is a more conservative value.
This commit is contained in:
parent
c0453a40fa
commit
e5e51556e4
2 changed files with 6 additions and 5 deletions
|
@ -92,8 +92,8 @@ class TestMiscellaneous(unittest.TestCase):
|
|||
self.assertEqual(obj_copy, expected_obj)
|
||||
|
||||
def test_inline_array_recursion_limit(self):
|
||||
# 470 with default recursion limit
|
||||
nest_count = int(sys.getrecursionlimit() * 0.47)
|
||||
# 465 with default recursion limit
|
||||
nest_count = int(sys.getrecursionlimit() * 0.465)
|
||||
recursive_array_toml = "arr = " + nest_count * "[" + nest_count * "]"
|
||||
tomllib.loads(recursive_array_toml)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue