pytest-asyncio 0.23 removed event_loop fixture and now async tests fail
Upgraded pytest-asyncio from 0.21 to 0.23 and every async test errors with fixture 'event_loop' not found. I had a custom event_loop fixture in conftest that I use to set up a test database. The changelog mentions deprecating event_loop but I don't understand the replacement. How do I configure the loop now without rewriting every test? I'm on pytest 8.1. The rest of the suite is fine, it's just the tests with async fixtures that break, so I assume it's tied to that one change.
4 replies