Skip to content

Add more tests for UserList, UserDict, etc #145144

Description

@serhiy-storchaka

It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do not test particular combination of argument types. For some methods tests are absent at all. And some code is a pure optimization -- when remove it, the generic slower implementation is used. It is not always possible to test this.

The following PR adds more tests for UserList, UserDict and UserString. Some tests are added to generic tests, so new tests are also added for str, bytes, bytearray, list, tuple, deque, etc.

Linked PRs

Activity

  1. added
    testsTests in the Lib/test dir
    3.13only security fixes
    3.14bugs and security fixes
    3.15bugs and security fixes
    on Feb 23, 2026
  2. added a commit that references this issue on Feb 23, 2026
  3. added a commit that references this issue on Mar 22, 2026
  4. added a commit that references this issue on Mar 22, 2026
  5. added 3 commits that reference this issue on Mar 22, 2026
  6. added a commit that references this issue on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixes3.15bugs and security fixestestsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions