diff --git a/tests/unit/providers/test_coroutines.py b/tests/unit/providers/test_coroutines.py index 6702171d..56db9ce0 100644 --- a/tests/unit/providers/test_coroutines.py +++ b/tests/unit/providers/test_coroutines.py @@ -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):