Commit bc59032
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 8bfcca2 commit bc59032
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 | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 295 | + | |
305 | 296 | | |
306 | | - | |
307 | 297 | | |
308 | | - | |
| 298 | + | |
309 | 299 | | |
310 | 300 | | |
311 | 301 | | |
312 | | - | |
313 | 302 | | |
314 | 303 | | |
315 | 304 | | |
| |||
0 commit comments