Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update test_userlist.py
  • Loading branch information
ShaharNaveh committed Jul 25, 2025
commit bb083989575fe700d56e3dc9b8953a4f89bb2314
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(25)(
list_tests.CommonTest.test_repr_deep,
)

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