Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update pytest-asyncio to 0.24.0 #2635

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Nov 6, 2024

They recommend setting it as per here. Full changelog see here.

@@ -38,8 +39,10 @@ def utils() -> Generator[Utils, None, None]:

# Will mark all the tests as async
def pytest_collection_modifyitems(items: List[pytest.Item]) -> None:
for item in items:
item.add_marker(pytest.mark.asyncio)
pytest_asyncio_tests = (item for item in items if is_async_test(item))
Copy link
Member Author

@mxschmitt mxschmitt Nov 6, 2024

Choose a reason for hiding this comment

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

This is taken from here.

@mxschmitt mxschmitt requested a review from dgozman November 6, 2024 23:59
@mxschmitt mxschmitt merged commit d0ac4c0 into microsoft:main Nov 7, 2024
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants