diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-15 20:20:34 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-15 20:20:34 (GMT) |
commit | 0ed20cdfb723c68d604eddec0fc66436ce18e9c0 (patch) | |
tree | 6072de95ce4b4e1ba186021bf29bf4ee3d4c25f8 /Lib/test/test_asyncio | |
parent | 2f841442354f41f2490cef76e9ba24bfef9dfbea (diff) | |
download | cpython-0ed20cdfb723c68d604eddec0fc66436ce18e9c0.zip cpython-0ed20cdfb723c68d604eddec0fc66436ce18e9c0.tar.gz cpython-0ed20cdfb723c68d604eddec0fc66436ce18e9c0.tar.bz2 |
Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 22accf5..9872926 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -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) |