We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_deep_repr
test_userdict
1 parent 10e1a0c commit 14e539fCopy full SHA for 14e539f
Lib/test/test_userdict.py
@@ -1,6 +1,6 @@
1
# Check every path through every method of UserDict
2
3
-from test import mapping_tests
+from test import mapping_tests, support
4
import unittest
5
import collections
6
@@ -213,6 +213,11 @@ class G(collections.UserDict):
213
else:
214
self.fail("g[42] didn't raise KeyError")
215
216
+ # Decorate existing test with recursion limit, because
217
+ # the test is for C structure, but `UserDict` is a Python structure.
218
+ test_repr_deep = support.infinite_recursion()(
219
+ mapping_tests.TestHashMappingProtocol.test_repr_deep,
220
+ )
221
222
223
if __name__ == "__main__":
0 commit comments