Skip to content

chore(deps)(deps): Bump pytest-asyncio from 0.24.0 to 1.2.0 in /backend#144

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/backend/pytest-asyncio-1.2.0
Open

chore(deps)(deps): Bump pytest-asyncio from 0.24.0 to 1.2.0 in /backend#144
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/backend/pytest-asyncio-1.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2025

Copy link
Copy Markdown
Contributor

Bumps pytest-asyncio from 0.24.0 to 1.2.0.

Release notes

Sourced from pytest-asyncio's releases.

pytest-asyncio 1.2.0

1.2.0 - 2025-09-12

Added

  • --asyncio-debug CLI option and asyncio_debug configuration option to enable asyncio debug mode for the default event loop. (#980)
  • A pytest.UsageError for invalid configuration values of asyncio_default_fixture_loop_scope and asyncio_default_test_loop_scope. (#1189)
  • Compatibility with the Pyright type checker (#731)

Fixed

  • RuntimeError: There is no current event loop in thread 'MainThread' when any test unsets the event loop (such as when using asyncio.run and asyncio.Runner). (#1177)
  • Deprecation warning when decorating an asynchronous fixture with @pytest.fixture in [strict]{.title-ref} mode. The warning message now refers to the correct package. (#1198)

Notes for Downstream Packagers

  • Bump the minimum required version of tox to v4.28. This change is only relevant if you use the tox.ini file provided by pytest-asyncio to run tests.
  • Extend dependency on typing-extensions>=4.12 from Python<3.10 to Python<3.13.

pytest-asyncio 1.1.1

v1.1.1 - 2025-09-12

Notes for Downstream Packagers

- Addresses a build problem with setuptoos-scm >= 9 caused by invalid setuptools-scm configuration in pytest-asyncio. (#1192)

pytest-asyncio 1.1.0

Added

  • Propagation of ContextVars from async fixtures to other fixtures and tests on Python 3.10 and older (#127)
  • Cancellation of tasks when the loop_scope ends (#200)
  • Warning when the current event loop is closed by a test

Fixed

  • Error about missing loop when calling functions requiring a loop in the finally clause of a task (#878)
  • An error that could cause duplicate warnings to be issued

Notes for Downstream Packagers

pytest-asyncio 1.1.0a1

1.1.0a1 - 2025-06-30

Added

  • Propagation of ContextVars from async fixtures to other fixtures and tests on Python 3.10 and older (#127)
  • Cancellation of tasks when the loop_scope ends (#200)
  • Warning when the current event loop is closed by a test

... (truncated)

Commits
  • 0d3988f ci: Create GitHub release before publishing to PyPI.
  • 07c5a0b docs: Include orphaned news fragment in changelog.
  • be24582 chore: Prepare release of v1.2.0.
  • 7aeb296 docs: Streamline news fragments
  • 7b8311c ci: Fixes a bug that prevented SSH signature from being stripped from release...
  • 9d4c2bd docs: Add changelog entry for Pyright compatibility.
  • 94f6106 test: Added tests which assert that the event loop is reinstated if unset by ...
  • df61991 [pre-commit.ci] pre-commit autoupdate
  • f1f7941 Build(deps): Bump pytest from 8.4.1 to 8.4.2
  • c77d3d3 Build(deps): Bump twine from 6.1.0 to 6.2.0
  • Additional commits viewable in compare view

Dependabot compatibility score

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 backend Backend API related dependencies Dependency updates labels Nov 10, 2025
@dependabot dependabot Bot requested a review from astrion-studio as a code owner November 10, 2025 11:55
@dependabot dependabot Bot added dependencies Dependency updates backend Backend API related labels Nov 10, 2025
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 10, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
farelens-api 92a025a Commit Preview URL

Branch Preview URL
Dec 08 2025, 10:35 AM

@astrion-studio

Copy link
Copy Markdown
Owner

@codex review and address why two checks failed and how to fix it.

@astrion-studio

Copy link
Copy Markdown
Owner

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates pytest-asyncio from version 0.24.0 to 1.2.0. This is a major version upgrade that introduces significant changes. While the current test suite seems unaffected as it doesn't use async def test functions, the new version of pytest-asyncio defaults to a strict mode that requires explicit markers for async tests. I've added a comment with details on this change and recommendations to prevent future issues.

Comment thread backend/requirements.txt Outdated
# Development
pytest==8.3.4
pytest-asyncio==0.24.0
pytest-asyncio==1.2.0

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.

medium

This is a major version bump for pytest-asyncio which introduces a significant change in its default behavior.

Starting from version 1.0.0, pytest-asyncio defaults to strict mode. In this mode, any asynchronous test function (async def) must be explicitly marked with @pytest.mark.asyncio to be discovered and run correctly.

The current test suite does not contain any async def tests, so it should not be affected. However, for future development, developers should be aware of this requirement.

To maintain the previous behavior where async tests are automatically discovered, you can explicitly set the mode to auto in your pytest configuration (e.g., pytest.ini or pyproject.toml):

[pytest]
asyncio_mode = auto

I recommend either documenting this new requirement for developers or adding the configuration to avoid future confusion when writing asynchronous tests.

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Testing

  • pytest

View task →

@dependabot dependabot Bot force-pushed the dependabot/pip/backend/pytest-asyncio-1.2.0 branch from 8add594 to 5603aec Compare November 25, 2025 05:58
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.24.0 to 1.2.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.24.0...v1.2.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/backend/pytest-asyncio-1.2.0 branch from 5603aec to 92a025a Compare December 8, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend API related dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant