diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-05 18:47:47 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-05 18:47:47 (GMT) |
| commit | c28f3ae7ff4018506372f88c0c16eee69b027fe9 (patch) | |
| tree | f2636f036b78ca91198c0b3485a2fd85939fd069 /Lib/test/test_asyncio/test_pep492.py | |
| parent | 1065278f23dbf6c8a783dd0d4b937616959ddfd3 (diff) | |
| parent | 6d0c4c38d1ba77d1534df130ca101affe98a46ef (diff) | |
| download | cpython-c28f3ae7ff4018506372f88c0c16eee69b027fe9.zip cpython-c28f3ae7ff4018506372f88c0c16eee69b027fe9.tar.gz cpython-c28f3ae7ff4018506372f88c0c16eee69b027fe9.tar.bz2 | |
Merge 3.5 (asyncio)
Diffstat (limited to 'Lib/test/test_asyncio/test_pep492.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_pep492.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py index 5c7e9ae..b702efc 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): |
