From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Apr 2020 02:07:31 +0000 (-0700) Subject: Fix parameter names in assertIn() docs (GH-18829) X-Git-Tag: v3.7.8rc1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fd47fabe04a1d52c61e87d594d10dd65e6432ee;p=thirdparty%2FPython%2Fcpython.git 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 a388bbd3f129364c39843f63e92f08bc53c71905) Co-authored-by: Christoph Zwerschke --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 0cd6918b1d25..3cc0665d00b0 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