diff options
| author | Jason Fried <fried@fb.com> | 2019-11-20 16:27:51 -0800 |
|---|---|---|
| committer | Lisa Roach <lisaroach14@gmail.com> | 2019-11-20 16:27:51 -0800 |
| commit | 046442d02bcc6e848e71e93e47f6cde9e279e993 (patch) | |
| tree | cb5e73fad1c8345b112aa9fee0ea0558339241e1 /Doc | |
| parent | e5d1f734db135e284af8e8868e7ccc85355952b9 (diff) | |
| download | cpython-git-046442d02bcc6e848e71e93e47f6cde9e279e993.tar.gz | |
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.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 7faecff84f..e92f5545d3 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. |
