Skip to content

Commit 55c5351

Browse files
committed
fix: add pragma no cover to skipped sync timeout test for 100% coverage
1 parent 31d6c62 commit 55c5351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server/fastmcp/test_tool_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,11 +985,11 @@ async def slow_tool(duration: float) -> str:
985985
reason="Blocking sync operations (time.sleep) don't respect anyio.fail_after() timeouts. "
986986
"Use anyio.sleep() in async functions for timeout support."
987987
)
988-
async def test_sync_tool_timeout(self):
988+
async def test_sync_tool_timeout(self): # pragma: no cover
989989
"""Test that synchronous tools also respect timeout."""
990990
import time
991991

992-
def slow_sync_tool(duration: float) -> str: # pragma: no cover
992+
def slow_sync_tool(duration: float) -> str:
993993
"""A synchronous tool that sleeps."""
994994
time.sleep(duration)
995995
return "completed"

0 commit comments

Comments
 (0)