Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add more tests for UserList, UserDict, etc #145144

Copy link
Copy link
@serhiy-storchaka

Description

@serhiy-storchaka
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.