pytest-asyncio breaking changes
Updated December 4, 2026
On this page
Latest version 1.5.0, released November 12, 2026. Source repository
Its 1.3.0 release drops Python 3.9. Python end of life dates.
- From 0.26.0 to 1.4.0: 10 breaking changes in 4 versions.
- From 0.17.0 to 1.4.0: 39 breaking changes in 12 versions.
pytest-asyncio 1.4.0 breaking changes
- Removed
The minimum supported pytest version is now 8.4.0, so older pytest versions are no longer supported and users must upgrade pytest. github.com
pytest-asyncio 1.3.0 breaking changes
- Removed
Python 3.9 is no longer supported; users on Python 3.9 must upgrade their Python version before using this release. github.com
pytest-asyncio 1.0.0 breaking changes
- Removed
pytest_asyncio.plugin.event_loop
The deprecated event_loop fixture was removed, so code that uses it must stop depending on it. pypi.org - Removed
pytest_asyncio.plugin.MultipleEventLoopsRequestedError
pytest_asyncio.plugin.MultipleEventLoopsRequestedError was removed in pytest-asyncio 1.0.0 pypi.org - Removed
pytest_asyncio.plugin.pytest_collectstart
pytest_asyncio.plugin.pytest_collectstart was removed in pytest-asyncio 1.0.0 pypi.org - Removed
pytest_asyncio.plugin.pytest_fixture_setup
pytest_asyncio.plugin.pytest_fixture_setup was removed in pytest-asyncio 1.0.0 pypi.org - Behavior changed
Scoped event loops such as module-scoped loops are created once instead of per scope, which can change test isolation and fixture behavior. github.com - Behavior changed
pytest.mark.asyncio
The loop_scope argument to pytest.mark.asyncio no longer requires a pytest Collector at the specified scope, so a test marked with loop_scope="class" no longer needs a surrounding class. github.com
pytest-asyncio 1.0.0a1 breaking changes
- Behavior changed
Scoped event loops such as module-scoped loops are created once instead of per scope, which can change test isolation and fixture behavior. github.com - Behavior changed
pytest.mark.asyncio
The loop_scope argument to pytest.mark.asyncio no longer requires a pytest Collector at the specified scope, so a test marked with loop_scope="class" no longer needs a surrounding class. github.com
pytest-asyncio 0.26.0 breaking changes
- Removed
pytest_asyncio.plugin.FactoryFixtureFunction
pytest_asyncio.plugin.FactoryFixtureFunction was removed in pytest-asyncio 0.26.0 pypi.org - Removed
pytest_asyncio.plugin.FixtureFunctionMarker
pytest_asyncio.plugin.FixtureFunctionMarker was removed in pytest-asyncio 0.26.0 pypi.org - Removed
pytest_asyncio.plugin.SimpleFixtureFunction
pytest_asyncio.plugin.SimpleFixtureFunction was removed in pytest-asyncio 0.26.0 pypi.org - Signature changed
pytest_asyncio.fixture
Was def fixture(fixture_function: FixtureFunction | None = None, loop_scope: _ScopeName | None = None, **kwargs: Any) -> FixtureFunction | FixtureFunctionMarker; now def fixture(fixture_function: FixtureFunction[_P, _R] | None = None... pypi.org
pytest-asyncio 0.24.0 breaking changes
- Behavior changed
pytest.mark.asyncio
Positional arguments for scope or loop_scope to @pytest.mark.asyncio now raise an error. Pass them as keyword arguments instead. github.com - Configuration changed
The minimum supported pytest version is now 8.2.0. Upgrade pytest before updating pytest-asyncio. github.com - Signature changed
pytest_asyncio.fixture
Was def fixture(fixture_function: Optional[FixtureFunction] = None, **kwargs: Any) -> Union[FixtureFunction, FixtureFunctionMarker]; now def fixture(fixture_function: Optional[FixtureFunction] = None, loop_scope: Union[_ScopeName, None] =... pypi.org - Signature changed
pytest_asyncio.plugin.pytest_fixture_setup
Was def pytest_fixture_setup(fixturedef: FixtureDef) -> Generator[None, Any, None]; now def pytest_fixture_setup(fixturedef: FixtureDef) -> Generator[None, pluggy.Result, None]. pypi.org - Signature changed
pytest_asyncio.plugin.pytest_pycollect_makeitem_convert_async_functions_to_subclass
Was def pytest_pycollect_makeitem_convert_async_functions_to_subclass(collector: Union[pytest.Module, pytest.Class], name: str, obj: object) -> Generator[None, Any, None]; now def... pypi.org
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
pytest-asyncio 0.23.0 breaking changes
- Removed
asyncio_event_loop
Use the scope keyword argument of the asyncio mark to request class, module, package or session scoped event loops. github.com - Removed
pytest_asyncio.plugin.pytest_collection_modifyitems
pytest_asyncio.plugin.pytest_collection_modifyitems was removed in pytest-asyncio 0.23.0 pypi.org
And 3 more in this version.
pytest-asyncio 0.22.0 breaking changes
- Removed
Python 3.7 is no longer supported; users on Python 3.7 must stay on an older release. github.com - Behavior changed
Test items based on asynchronous generators always exit with xfail status and emit a warning during collection, matching synchronous yield tests. github.com
pytest-asyncio 0.21.0 breaking changes
- Removed
pytest-asyncio now requires pytest 7.0 or newer. Users on pytest 6.1 must upgrade pytest. github.com - Removed
pytest_asyncio.plugin.Config
pytest_asyncio.plugin.Config was removed in pytest-asyncio 0.21.0 pypi.org
And 4 more in this version.
pytest-asyncio 0.20.0 breaking changes
- Removed
pytest_asyncio.plugin.LEGACY_ASYNCIO_FIXTURE
pytest_asyncio.plugin.LEGACY_ASYNCIO_FIXTURE was removed in pytest-asyncio 0.20.0 pypi.org - Removed
pytest_asyncio.plugin.LEGACY_MODE
pytest_asyncio.plugin.LEGACY_MODE was removed in pytest-asyncio 0.20.0 pypi.org
And 1 more in this version.
pytest-asyncio 0.19.0 breaking changes
- Default changed
asyncio_mode
Starting from pytest-asyncio 0.19 the strict mode is the default instead of auto/legacy. Tests and async fixtures need @pytest.mark.asyncio and @pytest_asyncio.fixture, or set asyncio_mode = auto explicitly. github.com
pytest-asyncio 0.18.0 breaking changes
- Removed
pytest_asyncio.plugin.FixtureStripper
pytest_asyncio.plugin.FixtureStripper was removed in pytest-asyncio 0.18.0 pypi.org - Behavior changed
pytest.mark.asyncio
Applying @pytest.mark.asyncio to a non-async function now emits a warning. Remove the marker from functions that are not coroutines. github.com
And 1 more in this version.
pytest-asyncio 0.17.0 breaking changes
- Removed
pytest-asyncio 0.17.0 no longer supports Python 3.6, so projects on Python 3.6 must stay on an earlier version. github.com - Removed
pytest_asyncio.__version__
pytest_asyncio.__version__ was removed in pytest-asyncio 0.17.0 pypi.org
And 1 more in this version.
pytest-asyncio 0.17.0a4 breaking changes
- Removed
Python 3.6 is no longer supported. Users on Python 3.6 must stay on an earlier pytest-asyncio release. github.com - Behavior changed
The plugin no longer alters existing asyncio event loop policies. Code that relied on the plugin changing the policy must set its own policy. github.com
pytest-asyncio 0.17.0a3 breaking changes
- Removed
Python 3.6 is no longer supported. Users on Python 3.6 must stay on an earlier pytest-asyncio release. github.com - Behavior changed
The plugin no longer alters existing asyncio event loop policies. Code that relied on the plugin changing the policy must set its own policy. github.com
Related packages
- pytest-cov
- pytest-django
- pytest-env
- pytest-github-actions-annotate-failures
- pytest-mock
- pytest-rerunfailures
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.