Skip to content

Commit f1dd4fe

Browse files
committed
[MNT] Force headless Matplotlib backend in tests to prevent UI crashes
1 parent 24e3ba1 commit f1dd4fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import os
22
import sys
33

4+
import matplotlib
45
import numpy as np
56
import pytest
67

8+
matplotlib.use("Agg")
9+
710
sys.path.insert(0, os.path.abspath(os.path.join(__file__, "../.."))) # isort:skip
811

912

0 commit comments

Comments
 (0)