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

Add support for async-with #10

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Conversation

lieryan
Copy link
Contributor

@lieryan lieryan commented Jun 28, 2023

Hi, thanks for a great library.

This PR adds support for using async with context manager to close ClientSession.

The --asyncio-mode=auto changes is somewhat unrelated to this, but it should also fix the issue with the failing coverage and tests in Github Actions.

This is now required in latest version of pytest-asyncio, otherwise all
tests are just going to be skipped.
Copy link
Owner

@emlove emlove left a comment

Choose a reason for hiding this comment

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

✨ Thanks for the contribution, looks great! Appreciate the tests!

@emlove emlove merged commit a08bb56 into emlove:main Jul 10, 2023
@emlove
Copy link
Owner

emlove commented Jul 10, 2023

Version 2.1.2 is published with these changes

@lieryan
Copy link
Contributor Author

lieryan commented Jul 11, 2023

Thanks for merging the PR!

@lieryan lieryan deleted the lieryan-support-async-with branch July 11, 2023 00:38
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