Skip to content

Commit 5dfecec

Browse files
committed
Make "classic" style have effect
Hopefully fixes failures in #5416
1 parent 46e9f22 commit 5dfecec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def check_freetype_version(ver):
138138
class ImageComparisonTest(CleanupTest):
139139
@classmethod
140140
def setup_class(cls):
141+
CleanupTest.setup_class()
141142
cls._initial_settings = mpl.rcParams.copy()
142143
try:
143144
matplotlib.style.use(cls._style)
@@ -146,10 +147,6 @@ def setup_class(cls):
146147
mpl.rcParams.clear()
147148
mpl.rcParams.update(cls._initial_settings)
148149
raise
149-
# Because the setup of a CleanupTest might involve
150-
# modifying a few rcparams, this setup should come
151-
# last prior to running the image test.
152-
CleanupTest.setup_class()
153150
cls.original_settings = cls._initial_settings
154151
cls._func()
155152

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy