From ac362f38774cdf47aace6d5deab1717b7c0fc7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 27 Feb 2026 19:40:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Tweak=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_stream_cancellation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stream_cancellation.py b/tests/test_stream_cancellation.py index eb823b9e8c..20069c5f6b 100644 --- a/tests/test_stream_cancellation.py +++ b/tests/test_stream_cancellation.py @@ -48,7 +48,7 @@ async def _run_asgi_and_cancel(app: FastAPI, path: str, timeout: float) -> bool: async def receive(): # type: ignore[no-untyped-def] # Simulate a client that never disconnects, rely on cancellation await anyio.sleep(float("inf")) - return {"type": "http.disconnect"} + return {"type": "http.disconnect"} # pragma: no cover async def send(message: dict) -> None: # type: ignore[type-arg] if message["type"] == "http.response.body":