summaryrefslogtreecommitdiff
path: root/Lib/unittest/mock.py
diff options
context:
space:
mode:
authorXtreak <tir.karthi@gmail.com>2019-05-21 14:17:17 +0530
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-21 01:47:17 -0700
commite7cb23bf2079087068a08502f96fdf20b317d69c (patch)
tree8d975456ed991b306c917eee52d714d0df734be4 /Lib/unittest/mock.py
parentd0ebf13e50dd736cdb355fa42c23837abbb88127 (diff)
downloadcpython-git-e7cb23bf2079087068a08502f96fdf20b317d69c.tar.gz
Fix RuntimeWarning in unittest.mock asyncio example (GH-13449)
* This PR fixes the `RuntimeWarning` in `inspect.isawaitable(mock())` where `mock()` was not awaited. * Fix typo in asynctest project.
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r--Lib/unittest/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 166c100376..654462cbf7 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.
"""