]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618)
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>
Thu, 5 Aug 2021 20:48:18 +0000 (16:48 -0400)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 20:48:18 +0000 (13:48 -0700)
Doc/library/unittest.mock.rst

index e760321ba129c404c53314c2328e824e0585134e..2f82fded9943d85499c948c20b90d41cc90536b4 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