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
8 changes: 8 additions & 0 deletions Lib/test/test_userlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from collections import UserList
from test import list_tests
import unittest
from test import support


class UserListTest(list_tests.CommonTest):
type2test = UserList
Expand Down Expand Up @@ -65,5 +67,11 @@ def test_userlist_copy(self):
self.assertEqual(u, v)
self.assertEqual(type(u), type(v))

# Decorate existing test with recursion limit, because
# the test is for C structure, but `UserList` is a Python structure.
test_repr_deep = support.infinite_recursion()(
list_tests.CommonTest.test_repr_deep,
)

if __name__ == "__main__":
unittest.main()