diff --git a/tests/test_client_request.py b/tests/test_client_request.py index ea4ebb4af10..9eeb933d312 100644 --- a/tests/test_client_request.py +++ b/tests/test_client_request.py @@ -280,6 +280,7 @@ def test_host_header_ipv6_with_port(make_request) -> None: reason="No idea why ClientRequest() is constructed out of loop but " "it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, + strict=False, ) def test_default_loop(loop) -> None: asyncio.set_event_loop(loop) diff --git a/tests/test_streams.py b/tests/test_streams.py index 23f159a0e3b..4de6fba5d74 100644 --- a/tests/test_streams.py +++ b/tests/test_streams.py @@ -88,6 +88,7 @@ async def test_create_waiter(self) -> None: reason="No idea why ClientRequest() is constructed out of loop but " "it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, + strict=False, ) def test_ctor_global_loop(self) -> None: loop = asyncio.new_event_loop() diff --git a/tests/test_web_app.py b/tests/test_web_app.py index 165b3776cef..13da52d5fca 100644 --- a/tests/test_web_app.py +++ b/tests/test_web_app.py @@ -44,6 +44,7 @@ async def test_set_loop() -> None: reason="No idea why _set_loop() is constructed out of loop " "but it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, + strict=False, ) def test_set_loop_default_loop() -> None: loop = asyncio.new_event_loop()