Commit 3ee5811
Fix CI: coverage, ruff format, and remove unused handle_list_tools
- Add anyio.sleep(0) between terminate() and cancel_scope.cancel() so
the message router can observe the ClosedResourceError from the closed
streams before the task group is cancelled (restores line 1022 coverage)
- Remove handle_list_tools from test — it was never called (only
call_tool is exercised), so its return was an uncovered line
- Mark the CallToolResult return as pragma: no cover — intentionally
unreachable in this test because the task is always cancelled at
await tool_gate.wait() before the return executes
- Collapse multi-line function signatures to satisfy ruff-format
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d7bb2ea commit 3ee5811
2 files changed
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 294 | + | |
304 | 295 | | |
305 | | - | |
306 | 296 | | |
307 | | - | |
| 297 | + | |
308 | 298 | | |
309 | 299 | | |
310 | 300 | | |
311 | | - | |
312 | 301 | | |
313 | 302 | | |
314 | 303 | | |
| |||
0 commit comments