Skip to content

Commit 08b640f

Browse files
miss-islingtonCito
andauthored
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". (cherry picked from commit a388bbd) Co-authored-by: Christoph Zwerschke <[email protected]>
1 parent ccf30e9 commit 08b640f

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)