Skip to content

Commit 968201b

Browse files
Tialomiss-islington
authored andcommitted
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>
1 parent fda3291 commit 968201b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/unittest.mock.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,13 @@ the *new_callable* argument to :func:`patch`.
414414

415415
This can be useful where you want to make a series of assertions that
416416
reuse the same object. Note that :meth:`reset_mock` *doesn't* clear the
417-
return value, :attr:`side_effect` or any child attributes you have
417+
:attr:`return_value`, :attr:`side_effect` or any child attributes you have
418418
set using normal assignment by default. In case you want to reset
419-
*return_value* or :attr:`side_effect`, then pass the corresponding
419+
:attr:`return_value` or :attr:`side_effect`, then pass the corresponding
420420
parameter as ``True``. Child mocks and the return value mock
421421
(if any) are reset as well.
422422

423-
.. note:: *return_value*, and :attr:`side_effect` are keyword-only
423+
.. note:: *return_value*, and *side_effect* are keyword-only
424424
arguments.
425425

426426

0 commit comments

Comments
 (0)