Skip to content

Commit b31b529

Browse files
committed
Set matplotlib backend to agg for non-gui testing
1 parent db2c9dc commit b31b529

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Avoid tkinter error for non-GUI uses
2+
import matplotlib
3+
matplotlib.use("Agg")
4+
15
import pytest
26
from shapely import geometry
37
import numpy as np

0 commit comments

Comments
 (0)