Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Lib/test/test_userdict.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -213,6 +213,11 @@ class G(collections.UserDict):
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()(
mapping_tests.TestHashMappingProtocol.test_repr_deep,
)


if __name__ == "__main__":
Expand Down