mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)
(cherry picked from commit 938e84b4fa
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
This commit is contained in:
parent
791c28a56f
commit
8c17db6cd4
1 changed files with 1 additions and 1 deletions
|
@ -2207,7 +2207,7 @@ In this example we monkey patch ``method`` to return ``sentinel.some_object``:
|
||||||
>>> real.method.return_value = sentinel.some_object
|
>>> real.method.return_value = sentinel.some_object
|
||||||
>>> result = real.method()
|
>>> result = real.method()
|
||||||
>>> assert result is sentinel.some_object
|
>>> assert result is sentinel.some_object
|
||||||
>>> sentinel.some_object
|
>>> result
|
||||||
sentinel.some_object
|
sentinel.some_object
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue