Commit 6a703a4
committed
Fix ResourceWarning by properly closing file handles in DummyProcess
The DummyProcess class wasn't closing file handles in its __aexit__ method,
causing ResourceWarning errors in CI tests on Windows. This commit adds
proper cleanup to close both the async stream wrappers and underlying raw
file handles when the process context manager exits.
This prevents file descriptor leaks and eliminates the ResourceWarning
errors seen in pytest output on Windows CI.1 parent fc775e9 commit 6a703a4
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | 96 | | |
| |||
0 commit comments