summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-13 09:20:18 (GMT)
committerGitHub <noreply@github.com>2023-02-13 09:20:18 (GMT)
commit01b21c320b9dbd123f5848e33b4a9da952a11730 (patch)
treee69c02cb0b78ab0ede9309511ab2391416910f44 /Doc/library
parent1b736838e6ae1b4ef42cdd27c2708face908f92c (diff)
downloadcpython-01b21c320b9dbd123f5848e33b4a9da952a11730.zip
cpython-01b21c320b9dbd123f5848e33b4a9da952a11730.tar.gz
cpython-01b21c320b9dbd123f5848e33b4a9da952a11730.tar.bz2
Correct trivial grammar in reset_mock docs (GH-101861)
(cherry picked from commit a1f08f5f19753c7c9295f51b5ae1262c7a1c838f) Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/unittest.mock.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index b768557..4f06e83 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -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)