Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.66k stars 150 forks source link

Pytest-asyncio deprecation warning on asyncio_mode #136

Open davesteele opened 2 years ago

davesteele commented 2 years ago

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.