From 495c0fd80a6f8f21822250c1377214f5c72f9096 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 18 May 2014 20:13:36 -0400 Subject: [PATCH] TST : fix font-priority test For reasons I don't understand wrapping the test in a cleanup decorator seems to make it pass consistently. Closes #3065 --- lib/matplotlib/tests/test_font_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_font_manager.py b/lib/matplotlib/tests/test_font_manager.py index df2675219023..96fc661ed0de 100644 --- a/lib/matplotlib/tests/test_font_manager.py +++ b/lib/matplotlib/tests/test_font_manager.py @@ -3,13 +3,14 @@ from nose.tools import assert_equal import six - import os from matplotlib.font_manager import findfont, FontProperties from matplotlib import rc_context +from matplotlib.testing.decorators import cleanup +@cleanup def test_font_priority(): with rc_context(rc={ 'font.sans-serif':