mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
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.
This commit is contained in:
parent
d0ebf13e50
commit
e7cb23bf20
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue