Skip to content

Commit fe77b61

Browse files
committed
fix: remove unnecessary 'pragma: no cover' from streamable_http test helpers
These helpers are executed in subprocesses but coverage is configured to track multiprocessing, causing strict-no-cover to fail.
1 parent 7152315 commit fe77b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/shared/test_streamable_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ async def sampling_callback(
13851385

13861386

13871387
# Context-aware server implementation for testing request context propagation
1388-
class ContextAwareServerTest(Server): # pragma: no cover
1388+
class ContextAwareServerTest(Server):
13891389
def __init__(self):
13901390
super().__init__("ContextAwareServer")
13911391

@@ -1445,7 +1445,7 @@ async def handle_call_tool(name: str, args: dict[str, Any]) -> list[TextContent]
14451445

14461446

14471447
# Server runner for context-aware testing
1448-
def run_context_aware_server(port: int): # pragma: no cover
1448+
def run_context_aware_server(port: int):
14491449
"""Run the context-aware test server."""
14501450
server = ContextAwareServerTest()
14511451

0 commit comments

Comments
 (0)