From 20dbeaffa611a2d42e4366a644ad9a600d1ee3cc Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 15 Oct 2018 10:00:17 +0300 Subject: [PATCH] Make coroutine tests python 2 syntax friendly --- tests/unit/providers/test_coroutines.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):