Update test_userdict.py from 3.13.7

This commit is contained in:
ShaharNaveh committed 2025-08-31 12:14:40 +03:00
1 parent d732c307dc
commit e00a95d15c
1 file changed
+6 -1
+6 -1
View File
@@ -1,6 +1,6 @@
# Check every path through every method of UserDict
from test import mapping_tests
from test import mapping_tests, support
import unittest
import collections
@@ -213,6 +213,11 @@ 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,
)
if __name__ == "__main__":