Skip to content

Commit a388bbd

Browse files
authored
Fix parameter names in assertIn() docs (GH-18829)
The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
1 parent 5565c30 commit a388bbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/unittest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,10 @@ Test cases
910910
.. versionadded:: 3.1
911911

912912

913-
.. method:: assertIn(first, second, msg=None)
914-
assertNotIn(first, second, msg=None)
913+
.. method:: assertIn(member, container, msg=None)
914+
assertNotIn(member, container, msg=None)
915915

916-
Test that *first* is (or is not) in *second*.
916+
Test that *member* is (or is not) in *container*.
917917

918918
.. versionadded:: 3.1
919919

0 commit comments

Comments
 (0)