We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e9f22 commit 5dfececCopy full SHA for 5dfecec
lib/matplotlib/testing/decorators.py
@@ -138,6 +138,7 @@ def check_freetype_version(ver):
138
class ImageComparisonTest(CleanupTest):
139
@classmethod
140
def setup_class(cls):
141
+ CleanupTest.setup_class()
142
cls._initial_settings = mpl.rcParams.copy()
143
try:
144
matplotlib.style.use(cls._style)
@@ -146,10 +147,6 @@ def setup_class(cls):
146
147
mpl.rcParams.clear()
148
mpl.rcParams.update(cls._initial_settings)
149
raise
- # 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()
153
cls.original_settings = cls._initial_settings
154
cls._func()
155
0 commit comments