diff options
author | Elena Oat <oat.elena@gmail.com> | 2020-01-15 09:50:57 (GMT) |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2020-01-15 09:50:57 (GMT) |
commit | cf288b53e418d8e93626e3d87c9926067d3b3147 (patch) | |
tree | 1dc2d75a18d4d2fb95d3ad41382d4cfa0d57707a /Doc | |
parent | 54f743eb315f00b0ff45e115dde7a5d506034153 (diff) | |
download | cpython-cf288b53e418d8e93626e3d87c9926067d3b3147.zip cpython-cf288b53e418d8e93626e3d87c9926067d3b3147.tar.gz cpython-cf288b53e418d8e93626e3d87c9926067d3b3147.tar.bz2 |
Fix AsyncMock base class in the docs (GH-18008)
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 e92f554..8394304 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -854,7 +854,7 @@ object:: .. class:: AsyncMock(spec=None, side_effect=None, return_value=DEFAULT, wraps=None, name=None, spec_set=None, unsafe=False, **kwargs) - An asynchronous version of :class:`Mock`. The :class:`AsyncMock` object will + An asynchronous version of :class:`MagicMock`. The :class:`AsyncMock` object will behave so the object is recognized as an async function, and the result of a call is an awaitable. |