Skip to content

Docs: problem with page "unittest — Unit testing framework" #148186

@Hanse00

Description

@Hanse00

Documentation

The page at https://docs.python.org/3/library/unittest.html briefly describes assertCountEqual(a, b) as checking:

a and b have the same elements in the same number, regardless of their order.

To me (Admittedly as a non-English first language speaker) it wasn't immediately obvious what was meant by "in the same number".

I think a clearer phrasing might be a and b have the same elements in the same quantities or a and b have the same numbers of the same elements or something like that.

Open to discussion, also open to being told I'm just bad at reading 😄 But I think we could phrase ourselves a bit clearer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions