From: Yury Selivanov Date: Wed, 5 Aug 2015 18:47:33 +0000 (-0400) Subject: asyncio.test_pep492: Add a test for asyncio.iscoroutinefunction X-Git-Tag: v3.6.0a1~1830^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d0c4c38d1ba77d1534df130ca101affe98a46ef;p=python asyncio.test_pep492: Add a test for asyncio.iscoroutinefunction --- diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py index 5c7e9aecff..b702efcdfd 100644 --- a/Lib/test/test_asyncio/test_pep492.py +++ b/Lib/test/test_asyncio/test_pep492.py @@ -107,6 +107,10 @@ class CoroutineTests(BaseTest): self.assertTrue(asyncio.iscoroutine(FakeCoro())) + def test_iscoroutinefunction(self): + async def foo(): pass + self.assertTrue(asyncio.iscoroutinefunction(foo)) + def test_function_returning_awaitable(self): class Awaitable: def __await__(self):