Use correct markup in unittest.mock.reset_mock documentation (GH-119207)

This commit is contained in:
Tialo 2024-05-20 22:17:44 +03:00 committed by GitHub
parent a6fdb31b67
commit 6b80a5b20f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -414,13 +414,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.