mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
This commit is contained in:
parent
2f84144235
commit
0ed20cdfb7
3 changed files with 18 additions and 2 deletions
|
@ -1376,6 +1376,8 @@ class TaskTests(test_utils.TestCase):
|
|||
yield
|
||||
self.assertTrue(asyncio.iscoroutinefunction(fn2))
|
||||
|
||||
self.assertFalse(asyncio.iscoroutinefunction(mock.Mock()))
|
||||
|
||||
def test_yield_vs_yield_from(self):
|
||||
fut = asyncio.Future(loop=self.loop)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue