Skip to content

Commit 360a8fd

Browse files
committed
fix: add pragma no cover to unreachable success path in error test
1 parent 55c5351 commit 360a8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/server/fastmcp/test_tool_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ async def failing_tool(should_fail: bool) -> str:
10341034
"""A tool that raises an error."""
10351035
if should_fail:
10361036
raise ValueError("Tool failed intentionally")
1037-
return "success"
1037+
return "success" # pragma: no cover
10381038

10391039
manager = ToolManager(timeout_seconds=1.0)
10401040
manager.add_tool(failing_tool)

0 commit comments

Comments
 (0)