Commit c02db05
authored
Fix intermittent test failures on Windows CI due to Tcl/Tk initialization race condition (#558)
Plot tests on Windows CI were failing intermittently with
`_tkinter.TclError: Can't find a usable init.tcl`, causing flaky test
runs that would pass on retry. This was a race condition where uv's
Python extraction on Windows didn't complete before matplotlib tried to
initialize Tkinter.
This fix sets `MPLBACKEND=Agg` in the test workflow, which tells
matplotlib to use the non-interactive Agg backend instead of Tkinter.
This is standard practice for CI environments and eliminates the Tcl
dependency entirely. Plot functionality remains fully tested—the Agg
backend generates static images instead of interactive windows.1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments