diff --git a/tests/test_plotting.py b/tests/test_plotting.py index 97e88e1..5bc3ef6 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -6,6 +6,7 @@ import tempfile import unittest import matplotlib +matplotlib.use('Agg', warn=False) from matplotlib.pyplot import Artist, savefig, clf from matplotlib.testing.noseclasses import ImageComparisonFailure from matplotlib.testing.compare import compare_images @@ -14,7 +15,6 @@ from six.moves import xrange from geopandas import GeoSeries -matplotlib.use('Agg', warn=False) # If set to True, generate images rather than perform tests (all tests will pass!) GENERATE_BASELINE = False