1111from matplotlib .image import imread
1212from matplotlib .backends .backend_agg import FigureCanvasAgg as FigureCanvas
1313from matplotlib .figure import Figure
14- from matplotlib .testing .decorators import cleanup , image_comparison
14+ from matplotlib .testing .decorators import image_comparison
1515from matplotlib import pyplot as plt
1616from matplotlib import collections
1717from matplotlib import path
1818from matplotlib import transforms as mtransforms
1919
2020
21- @cleanup
2221def test_repeated_save_with_alpha ():
2322 # We want an image which has a background color of bluish green, with an
2423 # alpha of 0.25.
@@ -51,7 +50,6 @@ def test_repeated_save_with_alpha():
5150 decimal = 3 )
5251
5352
54- @cleanup
5553def test_large_single_path_collection ():
5654 buff = io .BytesIO ()
5755
@@ -66,7 +64,6 @@ def test_large_single_path_collection():
6664 plt .savefig (buff )
6765
6866
69- @cleanup
7067def test_marker_with_nan ():
7168 # This creates a marker with nans in it, which was segfaulting the
7269 # Agg backend (see #3722)
@@ -79,7 +76,6 @@ def test_marker_with_nan():
7976 fig .savefig (buf , format = 'png' )
8077
8178
82- @cleanup
8379def test_long_path ():
8480 buff = io .BytesIO ()
8581
@@ -218,7 +214,6 @@ def process_image(self, padded_src, dpi):
218214 ax .yaxis .set_visible (False )
219215
220216
221- @cleanup
222217def test_too_large_image ():
223218 fig = plt .figure (figsize = (300 , 1000 ))
224219 buff = io .BytesIO ()
0 commit comments