mirror of
https://github.com/python/cpython.git
synced 2025-12-13 04:16:07 +00:00
Merge 3.5 (asyncio)
This commit is contained in:
commit
c28f3ae7ff
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ class CoroutineTests(BaseTest):
|
||||||
|
|
||||||
self.assertTrue(asyncio.iscoroutine(FakeCoro()))
|
self.assertTrue(asyncio.iscoroutine(FakeCoro()))
|
||||||
|
|
||||||
|
def test_iscoroutinefunction(self):
|
||||||
|
async def foo(): pass
|
||||||
|
self.assertTrue(asyncio.iscoroutinefunction(foo))
|
||||||
|
|
||||||
def test_function_returning_awaitable(self):
|
def test_function_returning_awaitable(self):
|
||||||
class Awaitable:
|
class Awaitable:
|
||||||
def __await__(self):
|
def __await__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue