8000 Correct trivial grammar in reset_mock docs by s-t-e-v-e-n-k · Pull Request #101861 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Correct trivial grammar in reset_mock docs #101861

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
reset_mock under unittest.mock had a singular 'argument' for a list of
two, correct it to the plural, and add a - for keyword-only for good
measure.
  • Loading branch information
s-t-e-v-e-n-k committed Feb 13, 2023
commit 221e658ae6026d52288aff0343dc66c1e041fdcd
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