mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Correct trivial grammar in reset_mock docs (GH-101861)
(cherry picked from commit a1f08f5f19
)
Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
This commit is contained in:
parent
1b736838e6
commit
01b21c320b
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue