8000 [3.12] Use correct markup in unittest.mock.reset_mock documentation (… · python/cpython@1738944 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1738944

Browse files
[3.12] Use correct markup in unittest.mock.reset_mock documentation (GH-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>
1 parent ffe9ba0 commit 1738944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/unittest.mock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@ the *new_callable* argument to :func:`patch`.
410410

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

419-
.. note:: *return_value*, and :attr:`side_effect` are keyword-only
419+
.. note:: *return_value*, and *side_effect* are keyword-only
420420
arguments.
421421

422422

0 commit comments

Comments
 (0)
0