Open parthea opened 2 months ago
This is related to https://github.com/pytest-dev/pytest-asyncio/releases/tag/v0.23.8
"As of v0.23, pytest-asyncio attaches an asyncio event loop to each item of the test suite (i.e. session, packages, modules, classes, functions) and allows tests to be run in those loops when marked accordingly. Pytest-asyncio currently assumes that async fixture scope is correlated with the new event loop scope. This prevents fixtures from being evaluated independently from the event loop scope and breaks some existing test suites"
It looks like 0.24.0 is changing how event loops are handled again, so maybe it will help
See build log here where the presubmit
Kokoro Prerelease Dependencies
which runs theprerelease_deps
nox session fails withRuntimeWarning: coroutine 'UnaryUnaryCall._invoke' was never awaited
The issue only appears when using
pytest-asyncio>0.21.2