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

miss-islington webhook-mailer at python.org
Thu Aug 5 16:48:26 EDT 2021


https://github.com/python/cpython/commit/938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e
commit: 938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e
branch: main
author: Jack DeVries <58614260+jdevries3133 at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-05T13:48:18-07:00
summary:

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

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

diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index e760321ba129c..2f82fded9943d 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