1.2.0 - 2025-09-12
Added
--asyncio-debug
CLI option andasyncio_debug
configuration option to enable asyncio debug mode for the default event loop. (#980)- A
pytest.UsageError
for invalid configuration values ofasyncio_default_fixture_loop_scope
andasyncio_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 usingasyncio.run
andasyncio.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.