Skip to content

Commit

Permalink
[3.12] Use correct markup in unittest.mock.reset_mock documentation (G…
Browse files Browse the repository at this point in the history
…H-119207) (GH-119249)

Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
(cherry picked from commit 6b80a5b)

Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
  • Loading branch information
miss-islington and Tialo authored May 20, 2024
1 parent ffe9ba0 commit 1738944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,13 @@ the *new_callable* argument to :func:`patch`.

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
return value, :attr:`side_effect` or any child attributes you have
:attr:`return_value`, :attr:`side_effect` or any child attributes you have
set using normal assignment by default. In case you want to reset
*return_value* or :attr:`side_effect`, then pass the corresponding
:attr:`return_value` or :attr:`side_effect`, then pass the corresponding
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
.. note:: *return_value*, and *side_effect* are keyword-only
arguments.


Expand Down

0 comments on commit 1738944

Please sign in to comment.