From 9161b01e97e6b9d1aef8cc80dae3f61949243a7c Mon Sep 17 00:00:00 2001 From: Roman Mogylatov <rmogilatov@gmail.com> Date: Mon, 27 Jul 2020 22:43:01 -0400 Subject: [PATCH] Try fix Python 3.4 tests --- tests/unit/providers/test_coroutines_py3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/providers/test_coroutines_py3.py b/tests/unit/providers/test_coroutines_py3.py index 828dda88..66e3f412 100644 --- a/tests/unit/providers/test_coroutines_py3.py +++ b/tests/unit/providers/test_coroutines_py3.py @@ -20,7 +20,7 @@ def _example(arg1, arg2, arg3, arg4): def _run(coro, debug=False): - if events._get_running_loop() is not None: + if asyncio._get_running_loop() is not None: raise RuntimeError( "asyncio.run() cannot be called from a running event loop")