Commit 2c838ca
committed
Set MPLBACKEND=Agg in CI to fix Tkinter issues on Windows
On Windows Python 3.13 CI environment, Tcl/Tk is not properly configured,
causing matplotlib tests to fail with TclError. Setting the MPLBACKEND
environment variable to 'Agg' (non-interactive backend) resolves this issue.
Changes:
- Added MPLBACKEND=Agg env var to all test jobs (Linux, macOS, Windows)
- This ensures consistent behavior across all CI platforms
- Fixes TclError in test_phase_plane.py and test_aligns.py on Windows
This is a cleaner solution than modifying individual test files.1 parent 6b410aa commit 2c838ca
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
0 commit comments