summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJason Fried <fried@fb.com>2019-11-21 00:27:51 (GMT)
committerLisa Roach <lisaroach14@gmail.com>2019-11-21 00:27:51 (GMT)
commit046442d02bcc6e848e71e93e47f6cde9e279e993 (patch)
treecb5e73fad1c8345b112aa9fee0ea0558339241e1 /Doc
parente5d1f734db135e284af8e8868e7ccc85355952b9 (diff)
downloadcpython-046442d02bcc6e848e71e93e47f6cde9e279e993.zip
cpython-046442d02bcc6e848e71e93e47f6cde9e279e993.tar.gz
cpython-046442d02bcc6e848e71e93e47f6cde9e279e993.tar.bz2
bpo-38857: AsyncMock fix for awaitable values and StopIteration fix [3.8] (GH-17269)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.mock.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 7faecff..e92f554 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -873,7 +873,7 @@ object::
exception,
- if ``side_effect`` is an iterable, the async function will return the
next value of the iterable, however, if the sequence of result is
- exhausted, ``StopIteration`` is raised immediately,
+ exhausted, ``StopAsyncIteration`` is raised immediately,
- if ``side_effect`` is not defined, the async function will return the
value defined by ``return_value``, hence, by default, the async function
returns a new :class:`AsyncMock` object.