[Python-checkins] bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)

ambv webhook-mailer at python.org
Fri Aug 6 11:38:32 EDT 2021


https://github.com/python/cpython/commit/8c17db6cd4e29f922a195acdb5aff3ef9c2340e5
commit: 8c17db6cd4e29f922a195acdb5aff3ef9c2340e5
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-08-06T17:38:21+02:00
summary:

bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)

(cherry picked from commit 938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e)

Co-authored-by: Jack DeVries <58614260+jdevries3133 at users.noreply.github.com>

files:
M Doc/library/unittest.mock.rst

diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index b3e71705801088..3c74b61779d478 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -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
 
 



More information about the Python-checkins mailing list