Commit efe0631
committed
fix: suppress Windows ProactorBasePipeTransport teardown warning
On Windows Python 3.13, the ProactorBasePipeTransport.__del__ fires
during GC after the threaded uvicorn server shuts down, raising a
PytestUnraisableExceptionWarning due to filterwarnings=['error'].
Force a GC collection with warnings suppressed so the transport
finalizer runs before pytest's unraisable-exception hook can catch it.1 parent ff4239d commit efe0631
File tree
1 file changed
+8
-0
lines changed1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1573 | 1581 | | |
1574 | 1582 | | |
1575 | 1583 | | |
| |||
0 commit comments