11
11
from matplotlib .image import imread
12
12
from matplotlib .backends .backend_agg import FigureCanvasAgg as FigureCanvas
13
13
from matplotlib .figure import Figure
14
- from matplotlib .testing .decorators import cleanup , image_comparison
14
+ from matplotlib .testing .decorators import image_comparison
15
15
from matplotlib import pyplot as plt
16
16
from matplotlib import collections
17
17
from matplotlib import path
18
18
from matplotlib import transforms as mtransforms
19
19
20
20
21
- @cleanup
22
21
def test_repeated_save_with_alpha ():
23
22
# We want an image which has a background color of bluish green, with an
24
23
# alpha of 0.25.
@@ -51,7 +50,6 @@ def test_repeated_save_with_alpha():
51
50
decimal = 3 )
52
51
53
52
54
- @cleanup
55
53
def test_large_single_path_collection ():
56
54
buff = io .BytesIO ()
57
55
@@ -66,7 +64,6 @@ def test_large_single_path_collection():
66
64
plt .savefig (buff )
67
65
68
66
69
- @cleanup
70
67
def test_marker_with_nan ():
71
68
# This creates a marker with nans in it, which was segfaulting the
72
69
# Agg backend (see #3722)
@@ -79,7 +76,6 @@ def test_marker_with_nan():
79
76
fig .savefig (buf , format = 'png' )
80
77
81
78
82
- @cleanup
83
79
def test_long_path ():
84
80
buff = io .BytesIO ()
85
81
@@ -218,7 +214,6 @@ def process_image(self, padded_src, dpi):
218
214
ax .yaxis .set_visible (False )
219
215
220
216
221
- @cleanup
222
217
def test_too_large_image ():
223
218
fig = plt .figure (figsize = (300 , 1000 ))
224
219
buff = io .BytesIO ()
0 commit comments