diff options
-rw-r--r-- | Doc/library/unittest.mock.rst | 4 | ||||
-rw-r--r-- | Lib/unittest/mock.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 21e4709..163da9a 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -862,7 +862,7 @@ object:: >>> mock = AsyncMock() >>> asyncio.iscoroutinefunction(mock) True - >>> inspect.isawaitable(mock()) + >>> inspect.isawaitable(mock()) # doctest: +SKIP True The result of ``mock()`` is an async function which will have the outcome @@ -888,7 +888,7 @@ object:: >>> mock = MagicMock(async_func) >>> mock <MagicMock spec='function' id='...'> - >>> mock() + >>> mock() # doctest: +SKIP <coroutine object AsyncMockMixin._mock_call at ...> .. method:: assert_awaited() diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 166c100..654462c 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -2204,7 +2204,7 @@ class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock): :class:`.Mock` object: the wrapped object may have methods defined as async function functions. - Based on Martin Richard's asyntest project. + Based on Martin Richard's asynctest project. """ |