Open aceg1k opened 6 months ago
Thanks for the report and the reproducer!
The event loop policy fixture is defined as an autouse fixture. I don't exactly recall why, but I think the reason is that it's now used by the deprecated event_loop
fixture and had to be marked as autouse for backwards compatibility.
It's obviously a bug that this also parametrizes all sync tests and needs to be addressed.
However, I don't expect this issue to be fixed before v1.0 when the legacy event_loop
fixture is gone.
Contrary to the statements in the documentation (here and here), the fixture is not only applied to all pytest-asyncio tests, but also applied to all other tests.
Output: