Pin Pytest-asyncio to <=0.16.0
nocarryr opened this issue · 0 comments
nocarryr commented
The warning added in 0.18.3 (pytest-dev/pytest-asyncio#242) is easily removed by adding the asyncio_mode = auto
option in pytest's config.
However, if testing in Python<3.7, this creates another warning with pytest not recognizing the option since as of 0.17.a0, Python3.6 support was dropped (pytest-dev/pytest-asyncio#237).
In most cases, this wouldn't be an issue except when your tests include assertions about warnings using pytest.warns()
(not an uncommon practice).
Consider either dropping Py3.6 support or pinning pytest-asyncio to 0.16.0