Skip to content

Commit 328538c

Browse files
committed
chore: add pragma no cover for untestable branch in terminate()
1 parent 61dd64a commit 328538c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp/server/streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ async def terminate(self) -> None:
799799

800800
# Cancel any in-flight GET SSE response to prevent
801801
# sse-starlette TaskGroup deadlock on Windows (python-sdk#2653).
802-
if self._active_get_response_scope is not None:
802+
if self._active_get_response_scope is not None: # pragma: no cover
803803
self._active_get_response_scope.cancel()
804804

805805
# We need a copy of the keys to avoid modification during iteration

0 commit comments

Comments
 (0)