diff --git a/constraints.txt b/constraints.txt index 6feea2d5..6215163c 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..ec6efd2c 100644 --- a/tests/markers/test_class_scope.py +++ b/tests/markers/test_class_scope.py @@ -110,8 +110,9 @@ class CustomEventLoopPolicy(asyncio.DefaultEventLoopPolicy): pass class TestUsesCustomEventLoop: + @classmethod @pytest.fixture(scope="class") - def event_loop_policy(self): + def event_loop_policy(cls): return CustomEventLoopPolicy() @pytest.mark.asyncio