]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix AsyncMock base class in the docs (GH-18008)
authorElena Oat <oat.elena@gmail.com>
Wed, 15 Jan 2020 09:50:57 +0000 (01:50 -0800)
committerChris Withers <chris@withers.org>
Wed, 15 Jan 2020 09:50:57 +0000 (09:50 +0000)
Doc/library/unittest.mock.rst

index e92f5545d3eb0573da999ce88a1c2087162a6da8..8394304cfdd9a02b2fb6b4f0efd6b654ddac55f4 100644 (file)
@@ -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.