Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/markers/test_class_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Comment on lines +113 to +115

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@classmethod
@pytest.fixture(scope="class")
def event_loop_policy(self):
def event_loop_policy(cls):
@pytest.fixture(scope="class")
@classmethod
def event_loop_policy(cls):

Passes when you change the order

return CustomEventLoopPolicy()

@pytest.mark.asyncio
Expand Down
Loading