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

Warn when event loop fixture is requested explicitly in async functions #648

Conversation

seifertm
Copy link
Contributor

@seifertm seifertm commented Oct 24, 2023

Closes #638

…icitly requested by a coroutine or an async fixture.

Signed-off-by: Michael Seifert <[email protected]>
@seifertm seifertm force-pushed the warn-when-event-loop-fixture-is-requested-explicitly-in-async-functions branch from f3acd72 to 5b84dd2 Compare October 28, 2023 08:48
@seifertm seifertm marked this pull request as ready for review October 28, 2023 08:51
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9f75b3c) 94.23% compared to head (5b84dd2) 94.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #648      +/-   ##
==========================================
- Coverage   94.23%   94.08%   -0.15%     
==========================================
  Files           2        2              
  Lines         399      406       +7     
  Branches       85       87       +2     
==========================================
+ Hits          376      382       +6     
  Misses         14       14              
- Partials        9       10       +1     
Files Coverage Δ
pytest_asyncio/plugin.py 94.04% <100.00%> (-0.15%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seifertm seifertm added this pull request to the merge queue Oct 31, 2023
Merged via the queue into pytest-dev:main with commit 044e568 Oct 31, 2023
@seifertm seifertm deleted the warn-when-event-loop-fixture-is-requested-explicitly-in-async-functions branch October 31, 2023 06:45
@seifertm seifertm restored the warn-when-event-loop-fixture-is-requested-explicitly-in-async-functions branch October 31, 2023 06:56
@seifertm seifertm deleted the warn-when-event-loop-fixture-is-requested-explicitly-in-async-functions branch October 31, 2023 06:56
carlsmedstad added a commit to carlsmedstad/aiogram that referenced this pull request Sep 27, 2024
carlsmedstad added a commit to carlsmedstad/aiogram that referenced this pull request Sep 27, 2024
JrooTJunior pushed a commit to aiogram/aiogram that referenced this pull request Sep 27, 2024
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.

Deprecate explicit use of event_loop fixture in async tests
2 participants