Update dependency pytest-asyncio to v1 #16

Closed
renovate-bot wants to merge 1 commit from renovate/pytest-asyncio-1.x into main
Collaborator

This PR contains the following updates:

Package Update Change
pytest-asyncio (changelog) major ==0.26.0 → ==1.4.1

Release Notes

pytest-dev/pytest-asyncio (pytest-asyncio)

v1.4.1: pytest-asyncio v1.4.1

Compare Source

1.4.1 - 2026-10-25

Added

  • Declared support for Python 3.15 (#​1588)

Fixed

  • Allow AsyncIterable as a return type for asynchronous generator fixtures decorated with pytest_asyncio.fixture (#​1090)

Notes for Downstream Packagers

  • Source-tree development dependencies now use PEP 735 dependency groups and uv.lock. (#​1518)

v1.4.0: pytest-asyncio v1.4.0

Compare Source

1.4.0 - 2026-05-26

Deprecated

  • Overriding the event_loop_policy fixture is deprecated. Use the pytest_asyncio_loop_factories hook instead. (#​1419)

Added

  • Added the pytest_asyncio_loop_factories hook to parametrize asyncio tests with custom event loop factories.

    The hook returns a mapping of factory names to loop factories, and pytest.mark.asyncio(loop_factories=[...]) selects a subset of configured factories per test. When a single factory is configured, test names are unchanged.

    Synchronous @pytest_asyncio.fixture functions now see the correct event loop when custom loop factories are configured, even when test code disrupts the current event loop (e.g., via asyncio.run() or asyncio.set_event_loop(None)). (#​1164)

Changed

  • Improved the readability of the warning message that is displayed when asyncio_default_fixture_loop_scope is unset (#​1298)
  • Only import asyncio.AbstractEventLoopPolicy for type checking to avoid raising
    a DeprecationWarning. (#​1394)
  • Updated minimum supported pytest version to v8.4.0. (#​1397)

Fixed

  • Fixed a ResourceWarning: unclosed event loop warning that could occur when a synchronous test called asyncio.run() or otherwise unset the current event loop after pytest-asyncio had run an async test or fixture. (#​724)

Notes for Downstream Packagers

  • Added dependency on sphinx-tabs >= 3.5 to organize documentation examples into tabs. (#​1395)

v1.3.0: pytest-asyncio 1.3.0

Compare Source

1.3.0 - 2025-11-10

Removed

Added

Notes for Downstream Packagers

  • Tested Python versions include free threaded Python 3.14t (#​1274)
  • Tests are run in the same pytest process, instead of spawning a subprocess with pytest.Pytester.runpytest_subprocess. This prevents the test suite from accidentally using a system installation of pytest-asyncio, which could result in test errors. (#​1275)

v1.2.0: pytest-asyncio 1.2.0

Compare Source

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.

v1.1.1: pytest-asyncio 1.1.1

Compare Source

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)

v1.1.0: pytest-asyncio 1.1.0

Compare Source

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

v1.0.0: pytest-asyncio 1.0.0

Compare Source

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)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) ([changelog](https://pytest-asyncio.readthedocs.io/en/stable/reference/changelog.html)) | major | `==0.26.0` → `==1.4.1` | --- ### Release Notes <details> <summary>pytest-dev/pytest-asyncio (pytest-asyncio)</summary> ### [`v1.4.1`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.4.1): pytest-asyncio v1.4.1 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.4.0...v1.4.1) ### [1.4.1](https://github.com/pytest-dev/pytest-asyncio/tree/1.4.1) - 2026-10-25 #### Added - Declared support for Python 3.15 ([#&#8203;1588](https://github.com/pytest-dev/pytest-asyncio/issues/1588)) #### Fixed - Allow *AsyncIterable* as a return type for asynchronous generator fixtures decorated with *pytest_asyncio.fixture* ([#&#8203;1090](https://github.com/pytest-dev/pytest-asyncio/issues/1090)) #### Notes for Downstream Packagers - Source-tree development dependencies now use PEP 735 dependency groups and `uv.lock`. ([#&#8203;1518](https://github.com/pytest-dev/pytest-asyncio/issues/1518)) ### [`v1.4.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.4.0): pytest-asyncio v1.4.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.3.0...v1.4.0) ### [1.4.0](https://github.com/pytest-dev/pytest-asyncio/tree/1.4.0) - 2026-05-26 #### Deprecated - Overriding the *event_loop_policy* fixture is deprecated. Use the `pytest_asyncio_loop_factories` hook instead. ([#&#8203;1419](https://github.com/pytest-dev/pytest-asyncio/issues/1419)) #### Added - Added the `pytest_asyncio_loop_factories` hook to parametrize asyncio tests with custom event loop factories. The hook returns a mapping of factory names to loop factories, and `pytest.mark.asyncio(loop_factories=[...])` selects a subset of configured factories per test. When a single factory is configured, test names are unchanged. Synchronous `@pytest_asyncio.fixture` functions now see the correct event loop when custom loop factories are configured, even when test code disrupts the current event loop (e.g., via `asyncio.run()` or `asyncio.set_event_loop(None)`). ([#&#8203;1164](https://github.com/pytest-dev/pytest-asyncio/issues/1164)) #### Changed - Improved the readability of the warning message that is displayed when `asyncio_default_fixture_loop_scope` is unset ([#&#8203;1298](https://github.com/pytest-dev/pytest-asyncio/issues/1298)) - Only import `asyncio.AbstractEventLoopPolicy` for type checking to avoid raising a DeprecationWarning. ([#&#8203;1394](https://github.com/pytest-dev/pytest-asyncio/issues/1394)) - Updated minimum supported pytest version to v8.4.0. ([#&#8203;1397](https://github.com/pytest-dev/pytest-asyncio/issues/1397)) #### Fixed - Fixed a `ResourceWarning: unclosed event loop` warning that could occur when a synchronous test called `asyncio.run()` or otherwise unset the current event loop after pytest-asyncio had run an async test or fixture. ([#&#8203;724](https://github.com/pytest-dev/pytest-asyncio/issues/724)) #### Notes for Downstream Packagers - Added dependency on `sphinx-tabs >= 3.5` to organize documentation examples into tabs. ([#&#8203;1395](https://github.com/pytest-dev/pytest-asyncio/issues/1395)) ### [`v1.3.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.3.0): pytest-asyncio 1.3.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.2.0...v1.3.0) ### [1.3.0](https://github.com/pytest-dev/pytest-asyncio/tree/1.3.0) - 2025-11-10 #### Removed - Support for Python 3.9 ([#&#8203;1278](https://github.com/pytest-dev/pytest-asyncio/issues/1278)) #### Added - Support for pytest 9 ([#&#8203;1279](https://github.com/pytest-dev/pytest-asyncio/issues/1279)) #### Notes for Downstream Packagers - Tested Python versions include free threaded Python 3.14t ([#&#8203;1274](https://github.com/pytest-dev/pytest-asyncio/issues/1274)) - Tests are run in the same pytest process, instead of spawning a subprocess with `pytest.Pytester.runpytest_subprocess`. This prevents the test suite from accidentally using a system installation of pytest-asyncio, which could result in test errors. ([#&#8203;1275](https://github.com/pytest-dev/pytest-asyncio/issues/1275)) ### [`v1.2.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.2.0): pytest-asyncio 1.2.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.1.1...v1.2.0) ### [1.2.0](https://github.com/pytest-dev/pytest-asyncio/tree/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. ([#&#8203;980](https://github.com/pytest-dev/pytest-asyncio/issues/980)) - A `pytest.UsageError` for invalid configuration values of `asyncio_default_fixture_loop_scope` and `asyncio_default_test_loop_scope`. ([#&#8203;1189](https://github.com/pytest-dev/pytest-asyncio/issues/1189)) - Compatibility with the Pyright type checker ([#&#8203;731](https://github.com/pytest-dev/pytest-asyncio/issues/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`). ([#&#8203;1177](https://github.com/pytest-dev/pytest-asyncio/issues/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. ([#&#8203;1198](https://github.com/pytest-dev/pytest-asyncio/issues/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. ### [`v1.1.1`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.1.1): pytest-asyncio 1.1.1 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.1.0...v1.1.1) ### [v1.1.1](https://github.com/pytest-dev/pytest-asyncio/tree/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. ([#&#8203;1192](https://github.com/pytest-dev/pytest-asyncio/issues/1192)) ### [`v1.1.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.1.0): pytest-asyncio 1.1.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v1.0.0...v1.1.0) ### Added - Propagation of ContextVars from async fixtures to other fixtures and tests on Python 3.10 and older ([#&#8203;127](https://github.com/pytest-dev/pytest-asyncio/issues/127)) - Cancellation of tasks when the `loop_scope` ends ([#&#8203;200](https://github.com/pytest-dev/pytest-asyncio/issues/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 ([#&#8203;878](https://github.com/pytest-dev/pytest-asyncio/issues/878)) - An error that could cause duplicate warnings to be issued ### Notes for Downstream Packagers - Added runtime dependency on [backports.asyncio.runner](https://pypi.org/project/backports.asyncio.runner/) for use with Python 3.10 and older ### [`v1.0.0`](https://github.com/pytest-dev/pytest-asyncio/releases/tag/v1.0.0): pytest-asyncio 1.0.0 [Compare Source](https://github.com/pytest-dev/pytest-asyncio/compare/v0.26.0...v1.0.0) ### [1.0.0](https://github.com/pytest-dev/pytest-asyncio/tree/1.0.0) - 2025-05-26 #### Removed - The deprecated *event_loop* fixture. ([#&#8203;1106](https://github.com/pytest-dev/pytest-asyncio/issues/1106)) #### Added - Prelimiary support for Python 3.14 ([#&#8203;1025](https://github.com/pytest-dev/pytest-asyncio/issues/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. ([#&#8203;1107](https://github.com/pytest-dev/pytest-asyncio/issues/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`. ([#&#8203;1112](https://github.com/pytest-dev/pytest-asyncio/issues/1112)) #### Fixed - An error caused when using pytest's \[--setup-plan]{.title-ref} option. ([#&#8203;630](https://github.com/pytest-dev/pytest-asyncio/issues/630)) - Unsuppressed import errors with pytest option `--doctest-ignore-import-errors` ([#&#8203;797](https://github.com/pytest-dev/pytest-asyncio/issues/797)) - A "fixture not found" error in connection with package-scoped loops ([#&#8203;1052](https://github.com/pytest-dev/pytest-asyncio/issues/1052)) #### Notes for Downstream Packagers - Removed a test that had an ordering dependency on other tests. ([#&#8203;1114](https://github.com/pytest-dev/pytest-asyncio/issues/1114)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTIuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE5Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
BlazingNeutron closed this pull request 2026-10-30 08:40:53 -04:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
BlazingNeutron/wyoming-whisper-api-client!16
No description provided.