summaryrefslogtreecommitdiffstats
path: root/Lib/test/mapping_tests.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-04 10:25:51 (GMT)
committerGitHub <noreply@github.com>2023-08-04 10:25:51 (GMT)
commit98902d6c0522df022d2f88499faf9774970e2838 (patch)
tree3c5919fae5314286a774ae9ebe8e682a4b5d50c5 /Lib/test/mapping_tests.py
parent58af2293c52a1ad3754d254690c0e54f787c545b (diff)
downloadcpython-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/mapping_tests.py')
-rw-r--r--Lib/test/mapping_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/mapping_tests.py b/Lib/test/mapping_tests.py
index 613206a..5492bbf 100644
--- a/Lib/test/mapping_tests.py
+++ b/Lib/test/mapping_tests.py
@@ -2,6 +2,7 @@
import unittest
import collections
import sys
+from test.support import C_RECURSION_LIMIT
class BasicTestMappingProtocol(unittest.TestCase):
@@ -624,7 +625,7 @@ class TestHashMappingProtocol(TestMappingProtocol):
def test_repr_deep(self):
d = self._empty_mapping()
- for i in range(sys.getrecursionlimit() + 100):
+ for i in range(C_RECURSION_LIMIT + 1):
d0 = d
d = self._empty_mapping()
d[1] = d0