Skip to content

Commit 11ca491

Browse files
committed
[Maint] force matlab to use non-interactive backend so that tests run in CI environment as well.
1 parent 8fce879 commit 11ca491

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_figures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
from plotting import figures
1414
from plotting.constants import CM2INCH
1515

16+
# Ensure matplotlib does not try to use an interactive backend (necessary for CI environments)
17+
mpl.use("Agg")
18+
1619

1720
class TestSetRcParams:
1821
"""Test suite for set_rc_params function."""

0 commit comments

Comments
 (0)