]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix parameter names in assertIn() docs (GH-18829)
authorChristoph Zwerschke <cito@online.de>
Fri, 17 Apr 2020 01:54:53 +0000 (03:54 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 01:54:53 +0000 (18:54 -0700)
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".

Doc/library/unittest.rst

index e2e4f2cdc220aa10dbe1bd04f440a43c86a0d272..b2e16cf331e036ceb192421a0931a04970582ff4 100644 (file)
@@ -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