]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct trivial grammar in reset_mock docs (GH-101861)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Feb 2023 09:20:18 +0000 (01:20 -0800)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 09:20:18 +0000 (01:20 -0800)
(cherry picked from commit a1f08f5f19753c7c9295f51b5ae1262c7a1c838f)

Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
Doc/library/unittest.mock.rst

index b768557e6075f6e0aedd9cfb228bedd792d92ca3..4f06e836d572811f43ac7f0e54a3c6dff0070041 100644 (file)
@@ -406,7 +406,7 @@ the *new_callable* argument to :func:`patch`.
             False
 
         .. versionchanged:: 3.6
-           Added two keyword only argument to the reset_mock function.
+           Added two keyword-only arguments to the reset_mock function.
 
         This can be useful where you want to make a series of assertions that
         reuse the same object. Note that :meth:`reset_mock` *doesn't* clear the
@@ -416,8 +416,8 @@ the *new_callable* argument to :func:`patch`.
         parameter as ``True``. Child mocks and the return value mock
         (if any) are reset as well.
 
-        .. note:: *return_value*, and :attr:`side_effect` are keyword only
-                  argument.
+        .. note:: *return_value*, and :attr:`side_effect` are keyword-only
+                  arguments.
 
 
     .. method:: mock_add_spec(spec, spec_set=False)