Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 906f6cb

Browse filesBrowse files
[3.13] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) (GH-119250)
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 054f1af commit 906f6cb
Copy full SHA for 906f6cb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/unittest.mock.rst

Copy file name to clipboardExpand all lines: Doc/library/unittest.mock.rst
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.