10000 [3.11] Correct trivial grammar in reset_mock docs (GH-101861) by miss-islington · Pull Request #101869 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] Correct trivial grammar in reset_mock docs (GH-101861) #101869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correct trivial grammar in reset_mock docs (GH-101861)
(cherry picked from commit a1f08f5)

Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
  • Loading branch information
s-t-e-v-e-n-k authored and miss-islington committed Feb 13, 2023
commit f635a16cfad68336d5429459c71bc682786df14f
6 changes: 3 additions & 3 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
0