diff --git a/tests/components/http/test_security_filter.py b/tests/components/http/test_security_filter.py index 5469b7ebfa7..9e4353d7e61 100644 --- a/tests/components/http/test_security_filter.py +++ b/tests/components/http/test_security_filter.py @@ -75,7 +75,7 @@ async def test_bad_requests( fail_on_query_string, aiohttp_client: ClientSessionGenerator, caplog: pytest.LogCaptureFixture, - loop, + event_loop, ) -> None: """Test request paths that should be filtered.""" app = web.Application() @@ -93,7 +93,7 @@ async def test_bad_requests( man_params = "" http = urllib3.PoolManager() - resp = await loop.run_in_executor( + resp = await event_loop.run_in_executor( None, http.request, "GET", @@ -126,7 +126,7 @@ async def test_bad_requests_with_unsafe_bytes( fail_on_query_string, aiohttp_client: ClientSessionGenerator, caplog: pytest.LogCaptureFixture, - loop, + event_loop, ) -> None: """Test request with unsafe bytes in their URLs.""" app = web.Application() @@ -144,7 +144,7 @@ async def test_bad_requests_with_unsafe_bytes( man_params = "" http = urllib3.PoolManager() - resp = await loop.run_in_executor( + resp = await event_loop.run_in_executor( None, http.request, "GET",