Fix http test DeprecationWarnings (#97737)

This commit is contained in:
Marc Mueller 2023-08-04 11:32:23 +02:00 committed by GitHub
parent f68f9d4e01
commit b23b2ac2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",