diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-04 10:25:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 10:25:51 (GMT) |
commit | 98902d6c0522df022d2f88499faf9774970e2838 (patch) | |
tree | 3c5919fae5314286a774ae9ebe8e682a4b5d50c5 /Lib/test/test_exception_group.py | |
parent | 58af2293c52a1ad3754d254690c0e54f787c545b (diff) | |
download | cpython-98902d6c0522df022d2f88499faf9774970e2838.zip cpython-98902d6c0522df022d2f88499faf9774970e2838.tar.gz cpython-98902d6c0522df022d2f88499faf9774970e2838.tar.bz2 |
[3.12] GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535) (#107618)
GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535)
* Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2.
(cherry picked from commit fa45958450aa3489607daf9855ca0474a2a20878)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Diffstat (limited to 'Lib/test/test_exception_group.py')
-rw-r--r-- | Lib/test/test_exception_group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exception_group.py b/Lib/test/test_exception_group.py index fa159a7..22be3a7 100644 --- a/Lib/test/test_exception_group.py +++ b/Lib/test/test_exception_group.py @@ -1,7 +1,7 @@ import collections.abc import types import unittest - +from test.support import C_RECURSION_LIMIT class TestExceptionGroupTypeHierarchy(unittest.TestCase): def test_exception_group_types(self): @@ -433,7 +433,7 @@ class ExceptionGroupSplitTests(ExceptionGroupTestBase): class DeepRecursionInSplitAndSubgroup(unittest.TestCase): def make_deep_eg(self): e = TypeError(1) - for i in range(2000): + for i in range(C_RECURSION_LIMIT + 1): e = ExceptionGroup('eg', [e]) return e |