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

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

index b3e71705801088fe9248ee2285e043807e2b21ea..3c74b61779d4782f3b1fc4eaf31104186daa6c86 100644 (file)
@@ -2207,7 +2207,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