Make coroutine tests python 2 syntax friendly

This commit is contained in:
Roman Mogylatov 2018-10-15 10:00:17 +03:00
parent a6655029d8
commit 20dbeaffa6

View File

@ -18,7 +18,8 @@ if asyncio:
def _example(arg1, arg2, arg3, arg4):
future = asyncio.Future()
future.set_result(None)
yield from future
for _ in future:
yield _
return arg1, arg2, arg3, arg4
def _run(coro):