From b0e93c54bd32a84cd728605087ebc70a11d3d69f Mon Sep 17 00:00:00 2001 From: Oleg A Date: Tue, 13 Feb 2024 00:00:03 +0300 Subject: [PATCH] chore: mypy + coverage --- tests/test_sse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_sse.py b/tests/test_sse.py index 3151c63..dbbfdcf 100644 --- a/tests/test_sse.py +++ b/tests/test_sse.py @@ -591,7 +591,7 @@ async def handler(request: web.Request) -> EventSourceResponse: timeout_raised = True raise - return sse + return sse # pragma: no cover app = web.Application() app.router.add_route("GET", "/", handler) @@ -600,6 +600,6 @@ async def handler(request: web.Request) -> EventSourceResponse: async with client.get("/") as resp: assert resp.status == 200 await asyncio.sleep(0.5) - assert resp.connection.closed is bool(timeout) + assert resp.connection and resp.connection.closed is bool(timeout) assert timeout_raised is bool(timeout)