]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Aug 2021 21:10:14 +0000 (14:10 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 21:10:14 +0000 (14:10 -0700)
(cherry picked from commit 938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Doc/library/unittest.mock.rst

index f1c0757c510fa60cfef5ff68e9c7641d4825e548..d0640b42ef40ad1ad98d4124a196eb09026ada3d 100644 (file)
@@ -2208,7 +2208,7 @@ In this example we monkey patch ``method`` to return ``sentinel.some_object``:
     >>> real.method.return_value = sentinel.some_object
     >>> result = real.method()
     >>> assert result is sentinel.some_object
-    >>> sentinel.some_object
+    >>> result
     sentinel.some_object