Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Updates the requirements on pytest-asyncio to permit the latest version.

Release notes

Sourced from pytest-asyncio's releases.

pytest-asyncio 1.0.0

1.0.0 - 2025-05-26

Removed

  • The deprecated event_loop fixture. (#1106)

Added

  • Prelimiary support for Python 3.14 (#1025)

Changed

  • Scoped event loops (e.g. module-scoped loops) are created once rather than per scope (e.g. per module). This reduces the number of fixtures and speeds up collection time, especially for large test suites. (#1107)
  • The loop_scope argument to pytest.mark.asyncio no longer forces that a pytest Collector exists at the level of the specified scope. For example, a test function marked with pytest.mark.asyncio(loop_scope="class") no longer requires a class surrounding the test. This is consistent with the behavior of the scope argument to pytest_asyncio.fixture. (#1112)

Fixed

  • An error caused when using pytest's [--setup-plan]{.title-ref} option. (#630)
  • Unsuppressed import errors with pytest option --doctest-ignore-import-errors (#797)
  • A "fixture not found" error in connection with package-scoped loops (#1052)

Notes for Downstream Packagers

  • Removed a test that had an ordering dependency on other tests. (#1114)
Commits
  • 5ef97bd chore: Prepare release of v1.0.0.
  • f212e24 docs: Mention fix of #797.
  • 32c1d10 test: Removed obsolete test for async_gen_fixtures.
  • 627ce92 [pre-commit.ci] pre-commit autoupdate
  • a55ff36 Build(deps): Bump pluggy from 1.5.0 to 1.6.0 in /dependencies/default
  • 633389f Build(deps): Bump hypothesis in /dependencies/default
  • 0c99466 docs: Fixed an error that reported a missing event_loop fixture when using pa...
  • 0688d17 ci: Replace Github template expansion with env variable expansion.
  • 2adcf52 ci: Quote Github variable expansion.
  • dd0fac9 ci: Fixed a bug that prevented release notes from being extracted from a Git ...
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 1, 2025
@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@8a8f285). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1329   +/-   ##
=======================================
  Coverage        ?   90.54%           
=======================================
  Files           ?      222           
  Lines           ?     7129           
  Branches        ?        0           
=======================================
  Hits            ?     6455           
  Misses          ?      674           
  Partials        ?        0           

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

@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from b8abe0e to 2964ac2 Compare July 2, 2025 00:27
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch 2 times, most recently from adddd4a to 0875cfd Compare July 2, 2025 16:54
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.1.1...v1.0.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/pytest-asyncio-lt-2 branch from 0875cfd to 91b1953 Compare July 2, 2025 19:17
@WilliamBergamin
Copy link
Contributor

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 1, 2025

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@WilliamBergamin
Copy link
Contributor

@dependabot recreate

@WilliamBergamin WilliamBergamin requested a review from a team as a code owner December 1, 2025 17:27
Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

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

I've updated this PR so that the async test follow the more classic setup, teardown pattern

Previously this project was using a pytest fixture to configure and return the "event loop". This pattern is not supported by pytest-asyncio 1.x.

Copy link
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

@WilliamBergamin Thanks so much for these improvements to the test suite!

IIRC the event loop was causing frequent warnings and this setup|teardown pattern is nice - LGTM! 👾 ✨

Comment on lines -18 to -25
def get_event_loop():
try:
return asyncio.get_event_loop()
except RuntimeError as ex:
if "There is no current event loop in thread" in str(ex):
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
Copy link
Member

Choose a reason for hiding this comment

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

🪓 praise: Farewell the testing event loop in the utils file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants