aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-02-19 11:44:57 +0000
committerGitHub <noreply@github.com>2025-02-19 11:44:57 +0000
commit2498c22fa0a2b560491bc503fa676585c1a603d0 (patch)
tree1e045c5f71ff6674cdd2c247c99565697e088a87 /Lib/test/test_exceptions.py
parentc637bce20aaaf836ab2cfbb123b9472e5ad0ab47 (diff)
downloadcpython-2498c22fa0a2b560491bc503fa676585c1a603d0.tar.gz
cpython-2498c22fa0a2b560491bc503fa676585c1a603d0.zip
GH-91079: Implement C stack limits using addresses, not counters. (GH-130007)
* Implement C recursion protection with limit pointers * Remove calls to PyOS_CheckStack * Add stack protection to parser * Make tests more robust to low stacks * Improve error messages for stack overflow
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 7aa200ad8be..bd1053b67fd 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -1479,7 +1479,7 @@ class ExceptionTests(unittest.TestCase):
"""
rc, out, err = script_helper.assert_python_failure("-c", code)
self.assertEqual(rc, 1)
- expected = b'RecursionError: maximum recursion depth exceeded'
+ expected = b'RecursionError'
self.assertTrue(expected in err, msg=f"{expected!r} not found in {err[:3_000]!r}... (truncated)")
self.assertIn(b'Done.', out)