mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 21:46:17 +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):
|
||||
future = asyncio.Future()
|
||||
future.set_result(None)
|
||||
yield from future
|
||||
for _ in future:
|
||||
yield _
|
||||
return arg1, arg2, arg3, arg4
|
||||
|
||||
def _run(coro):
|
||||
|
|
Loading…
Reference in New Issue
Block a user