]> granicus.if.org Git - python/commit
Fix RuntimeWarning in unittest.mock asyncio example (GH-13449)
authorXtreak <tir.karthi@gmail.com>
Tue, 21 May 2019 08:47:17 +0000 (14:17 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 May 2019 08:47:17 +0000 (01:47 -0700)
commite7cb23bf2079087068a08502f96fdf20b317d69c
tree8d975456ed991b306c917eee52d714d0df734be4
parentd0ebf13e50dd736cdb355fa42c23837abbb88127
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.
Doc/library/unittest.mock.rst
Lib/unittest/mock.py