[Python-checkins] Fix parameter names in assertIn() docs (GH-18829)
Miss Islington (bot)
webhook-mailer at python.org
Thu Apr 16 22:06:19 EDT 2020
https://github.com/python/cpython/commit/08b640f5727d76dbda1233c182b43a670849a0fa
commit: 08b640f5727d76dbda1233c182b43a670849a0fa
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020年04月16日T19:06:11-07:00
summary:
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 <cito at online.de>
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index a559d0988bee2..d9f080a862ff2 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
More information about the Python-checkins
mailing list