Skip to content

Commit

Permalink
Make "classic" style have effect
Browse files Browse the repository at this point in the history
Hopefully fixes failures in #5416
  • Loading branch information
mdboom committed Nov 8, 2015
1 parent 781540e commit 5551cdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/matplotlib/testing/decorators.py
Expand Up @@ -138,6 +138,7 @@ def check_freetype_version(ver):
class ImageComparisonTest(CleanupTest):
@classmethod
def setup_class(cls):
CleanupTest.setup_class()
cls._initial_settings = mpl.rcParams.copy()
try:
matplotlib.style.use(cls._style)
Expand All @@ -146,10 +147,6 @@ def setup_class(cls):
mpl.rcParams.clear()
mpl.rcParams.update(cls._initial_settings)
raise
# Because the setup of a CleanupTest might involve
# modifying a few rcparams, this setup should come
# last prior to running the image test.
CleanupTest.setup_class()
cls.original_settings = cls._initial_settings
cls._func()

Expand Down

0 comments on commit 5551cdd

Please sign in to comment.