Currently, the [documentation suggests](https://github.com/pytest-dev/pytest-asyncio/blob/b817cf476a6dda2fb4a847cfd1b3285209598779/docs/how-to-guides/uvloop.rst?plain=1#L8) ```python import pytest import uvloop @pytest.fixture(scope="session") def event_loop_policy(): return uvloop.EventLoopPolicy() ``` `EventLoopPolicy` was deprecated in https://github.com/MagicStack/uvloop/pull/638.