summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tomllib/test_misc.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-27 16:33:01 (GMT)
committerGitHub <noreply@github.com>2022-06-27 16:33:01 (GMT)
commit56f5f904968b3796dad942e87e971e7b87c571f3 (patch)
treeec2376fd8dd2d1b928e29b0922a362152f952a41 /Lib/test/test_tomllib/test_misc.py
parent4ec146cefd2446f7e19e05091949c84836223b59 (diff)
downloadcpython-56f5f904968b3796dad942e87e971e7b87c571f3.zip
cpython-56f5f904968b3796dad942e87e971e7b87c571f3.tar.gz
cpython-56f5f904968b3796dad942e87e971e7b87c571f3.tar.bz2
[3.11] gh-90473: Reduce recursion limit on WASI even further (GH-94333) (GH-94334)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_tomllib/test_misc.py')
-rw-r--r--Lib/test/test_tomllib/test_misc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tomllib/test_misc.py b/Lib/test/test_tomllib/test_misc.py
index 378db58..a477a21 100644
--- a/Lib/test/test_tomllib/test_misc.py
+++ b/Lib/test/test_tomllib/test_misc.py
@@ -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)