diff --git a/constraints.txt b/constraints.txt index 903fd4a6..01a5f69e 100644 --- a/constraints.txt +++ b/constraints.txt @@ -37,7 +37,7 @@ Pygments==2.20.0 pycparser==3.0 pydantic==2.13.4 pydantic-core==2.46.4 -pytest==9.0.3 +pytest==9.1.0 readme-renderer==45.0 requests==2.34.2 requests-toolbelt==1.0.0 diff --git a/tests/markers/test_class_scope.py b/tests/markers/test_class_scope.py index 28f7187c..ce023fcc 100644 --- a/tests/markers/test_class_scope.py +++ b/tests/markers/test_class_scope.py @@ -111,7 +111,8 @@ class CustomEventLoopPolicy(asyncio.DefaultEventLoopPolicy): class TestUsesCustomEventLoop: @pytest.fixture(scope="class") - def event_loop_policy(self): + @classmethod + def event_loop_policy(cls): return CustomEventLoopPolicy() @pytest.mark.asyncio