From: Colin Watson <cjwatson@debian.org>
Date: Mon, 13 Oct 2025 16:08:54 +0800
Subject: Port to pytest-asyncio >= 1.0.0

---
 tests/conftest.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index e554b95..e9aefbe 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,5 +1,6 @@
 from __future__ import annotations
 
+import asyncio
 import logging
 from collections.abc import Awaitable, Callable, Generator
 from json import JSONDecodeError
@@ -7,6 +8,7 @@ from typing import Any, cast
 
 import aiohttp
 import pytest
+import pytest_asyncio
 from aiohttp import web
 
 from rtsp_to_webrtc import diagnostics
@@ -14,9 +16,9 @@ from rtsp_to_webrtc import diagnostics
 _LOGGER = logging.getLogger(__name__)
 
 
-@pytest.fixture
-def loop(event_loop: Any) -> Any:
-    return event_loop
+@pytest_asyncio.fixture
+async def loop() -> Any:
+    return asyncio.get_running_loop()
 
 
 async def handler(request: aiohttp.web.Request) -> aiohttp.web.Response:
