diff options
author | Christoph Zwerschke <cito@online.de> | 2020-04-17 01:54:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 01:54:53 (GMT) |
commit | a388bbd3f129364c39843f63e92f08bc53c71905 (patch) | |
tree | 7723733e37a0fc3ab81e92bac615c7672cf5863e | |
parent | 5565c30f0b25996a0e73477fc0e1e1aced52b926 (diff) | |
download | cpython-a388bbd3f129364c39843f63e92f08bc53c71905.zip cpython-a388bbd3f129364c39843f63e92f08bc53c71905.tar.gz cpython-a388bbd3f129364c39843f63e92f08bc53c71905.tar.bz2 |
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".
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index e2e4f2c..b2e16cf 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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 |