[Python-checkins] Fix AsyncMock base class in the docs (GH-18008)

Chris Withers webhook-mailer at python.org
Wed Jan 15 04:51:05 EST 2020


https://github.com/python/cpython/commit/cf288b53e418d8e93626e3d87c9926067d3b3147
commit: cf288b53e418d8e93626e3d87c9926067d3b3147
branch: master
author: Elena Oat <oat.elena at gmail.com>
committer: Chris Withers <chris at withers.org>
date: 2020-01-15T09:50:57Z
summary:

Fix AsyncMock base class in the docs (GH-18008)

files:
M Doc/library/unittest.mock.rst

diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index e92f5545d3eb0..8394304cfdd9a 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.
 



More information about the Python-checkins mailing list