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

miss-islington webhook-mailer at python.org
Thu Aug 5 17:10:24 EDT 2021


https://github.com/python/cpython/commit/0a642d57736be6802c712bdbf2dcff39fe8a39b7
commit: 0a642d57736be6802c712bdbf2dcff39fe8a39b7
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-05T14:10:14-07:00
summary:

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

(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 f1c0757c510fa..d0640b42ef40a 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -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
 
 



More information about the Python-checkins mailing list