From b6d5bcb4112cb365ce6f712984369d242fb0da9a Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Mon, 21 Aug 2017 16:56:55 +0100 Subject: [PATCH] matplotlib defaults for tests --- lib/iris/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/iris/tests/__init__.py b/lib/iris/tests/__init__.py index b420bba961..480239c295 100644 --- a/lib/iris/tests/__init__.py +++ b/lib/iris/tests/__init__.py @@ -77,6 +77,7 @@ try: import matplotlib matplotlib.use('agg') + matplotlib.rcdefaults() import matplotlib.testing.compare as mcompare import matplotlib.pyplot as plt except ImportError: @@ -874,7 +875,7 @@ def assertArrayShapeStats(self, result, shape, mean, std_dev, rtol=1e-6): # At present, that includes not using "python setup.py test" # The typically best way is like this : # $ export IRIS_TEST_TIMINGS=1 -# $ python -m unittest discover -s iris.tests +# $ python -m unittest discover -s iris.tests # and commonly adding ... # | grep "TIMING TEST" >iris_test_output.txt #