From b23b2ac2e8f9203530571eecee32acba04c2bd61 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 4 Aug 2023 11:32:23 +0200 Subject: [PATCH] Fix http test DeprecationWarnings (#97737) --- tests/components/http/test_security_filter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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",