Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <cito@online.de>
  • Loading branch information
Cito authored and miss-islington committed Apr 17, 2020
commit 7d464c3c667bd541517f3327e164ad3a775c50bd
6 changes: 3 additions & 3 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -910,10 +910,10 @@ Test cases
.. versionadded:: 3.1


.. method:: assertIn(first, second, msg=None)
assertNotIn(first, second, msg=None)
.. method:: assertIn(member, container, msg=None)
assertNotIn(member, container, msg=None)

Test that *first* is (or is not) in *second*.
Test that *member* is (or is not) in *container*.

.. versionadded:: 3.1

Expand Down