]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
authorTialo <65392801+Tialo@users.noreply.github.com>
Mon, 20 May 2024 19:17:44 +0000 (22:17 +0300)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 19:17:44 +0000 (21:17 +0200)
Doc/library/unittest.mock.rst

index 9496c35f5267d07195f5139e6673e18e1726cc87..0c1cecf45381e22de19056695524bea26f60cf43 100644 (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.