Commit 2742eb0
fix: drain asyncssh redirect cleanup in the local ssh harness
asyncssh stores its redirect cleanup coroutines (Queue.join et al)
un-awaited and only runs them inside process.wait_closed(); the server
handler never called it, so every ssh test leaked coroutines that
pytest's unraisable hook surfaced as RuntimeWarnings during GC --
visible as stray noise in xdist runs. Await wait_closed() in the
handler and drop the filterwarnings mark, which never covered the
GC-time warning anyway.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 72b0eef commit 2742eb0
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
| |||
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments