aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_userdict.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-02-25 09:24:48 +0000
committerGitHub <noreply@github.com>2025-02-25 09:24:48 +0000
commit014223649c33b2febbccfa221c2ab7f18a8c0847 (patch)
tree5fb6432982ab3085d9275f20769f8fbcc581666b /Lib/test/test_userdict.py
parent99088ab081279329b8362e1c24533fa0be303e6f (diff)
downloadcpython-014223649c33b2febbccfa221c2ab7f18a8c0847.tar.gz
cpython-014223649c33b2febbccfa221c2ab7f18a8c0847.zip
GH-130396: Use computed stack limits on linux (GH-130398)
* Implement C recursion protection with limit pointers for Linux, MacOS and Windows * 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_userdict.py')
-rw-r--r--Lib/test/test_userdict.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
index 61e79f553e8..9bd842eda5b 100644
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -213,11 +213,7 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
else:
self.fail("g[42] didn't raise KeyError")
- # Decorate existing test with recursion limit, because
- # the test is for C structure, but `UserDict` is a Python structure.
- test_repr_deep = support.infinite_recursion(25)(
- mapping_tests.TestHashMappingProtocol.test_repr_deep,
- )
+ test_repr_deep = mapping_tests.TestHashMappingProtocol.test_repr_deep
if __name__ == "__main__":