Commit db9f7c4
skyvanguard
fix: apply ruff format and fix test thread exceptions
- Format streamable_http.py with ruff
- Handle cleanup exceptions in ServerThread to avoid
PytestUnhandledThreadExceptionWarning in CI
- Use module-level filterwarnings for pre-existing ResourceWarning
from unclosed streams in stateless transport mode1 parent acc62be commit db9f7c4
File tree
2 files changed
+14
-5
lines changed- src/mcp/server
- tests/issues
2 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
| 408 | + | |
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
| |||
128 | 140 | | |
129 | 141 | | |
130 | 142 | | |
131 | | - | |
132 | 143 | | |
133 | 144 | | |
134 | 145 | | |
| |||
204 | 215 | | |
205 | 216 | | |
206 | 217 | | |
207 | | - | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
| |||
0 commit comments