-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Docs: problem with page "unittest — Unit testing framework" #148186
Copy link
Copy link
Open
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Todo
Status
Todo