Pytest-asyncio deprecation warning on asyncio_mode
envgap__Tinche__aiofiles-136
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
8727c96f5be46235af412a9fe504ba7c149df7f3- Manifest
pyproject.toml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
Tinche/aiofiles #136 · read the original issue
Python 3.10 is issuing a deprecation warning on pytest asyncio_mode:
../../../../usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:191
/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to
'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
The stderr output can lead to autopkgtest failures.
Addressed by this [patch](https://github.com/davesteele/aiofiles/blob/debian/debian/patches/002-pytest-strict-asyncio.patch).04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]