From: Elena Oat Date: Wed, 15 Jan 2020 09:50:57 +0000 (-0800) Subject: Fix AsyncMock base class in the docs (GH-18008) X-Git-Tag: v3.9.0a3~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf288b53e418d8e93626e3d87c9926067d3b3147;p=thirdparty%2FPython%2Fcpython.git Fix AsyncMock base class in the docs (GH-18008) --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index e92f5545d3eb..8394304cfdd9 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.