From 406e1aec022b0bbeb34904b9b60667d571311867 Mon Sep 17 00:00:00 2001 From: Alexander Malev Date: Mon, 1 May 2023 16:53:59 +0300 Subject: [PATCH] use event_loop --- pytest_aioworkers/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_aioworkers/plugin.py b/pytest_aioworkers/plugin.py index 829fd63..93a5dfa 100644 --- a/pytest_aioworkers/plugin.py +++ b/pytest_aioworkers/plugin.py @@ -36,14 +36,14 @@ def config(aioworkers, config_yaml): @pytest.fixture -def context(loop, groups, config): +def context(event_loop, groups, config): from aioworkers.core.context import Context, GroupResolver gr = GroupResolver( include=groups.include, exclude=groups.exclude, ) - with Context(config, group_resolver=gr, loop=loop) as ctx: + with Context(config, group_resolver=gr, loop=event_loop) as ctx: yield ctx