From 90165de30edae40d0c4d043f896d035386e5f6aa Mon Sep 17 00:00:00 2001 From: Kelsey Jordahl Date: Tue, 6 May 2014 22:21:32 -0400 Subject: [PATCH] TST: Move matplotlib.use() to before other matplotlib imports --- tests/test_plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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