mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-23 14:59:08 +03:00
Make coroutine tests python 2 syntax friendly
This commit is contained in:
parent
a6655029d8
commit
20dbeaffa6
|
@ -18,7 +18,8 @@ if asyncio:
|
||||||
def _example(arg1, arg2, arg3, arg4):
|
def _example(arg1, arg2, arg3, arg4):
|
||||||
future = asyncio.Future()
|
future = asyncio.Future()
|
||||||
future.set_result(None)
|
future.set_result(None)
|
||||||
yield from future
|
for _ in future:
|
||||||
|
yield _
|
||||||
return arg1, arg2, arg3, arg4
|
return arg1, arg2, arg3, arg4
|
||||||
|
|
||||||
def _run(coro):
|
def _run(coro):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user