Skip to content

Commit 01b9215

Browse files
committed
remove @cleanup operator from test_complete. Its causing a pytest
failure, and I can't figure out why. Test seems to work ok without it.
1 parent 37418d8 commit 01b9215

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/tests/test_pickle.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
import numpy as np
1111

12-
from matplotlib.testing.decorators import cleanup, image_comparison
13-
from matplotlib.testing.decorators import image_comparison_2
12+
from matplotlib.testing.decorators import cleanup, image_comparison_2
1413
import matplotlib.pyplot as plt
1514
import matplotlib.transforms as mtransforms
1615

@@ -127,7 +126,10 @@ def test_simple():
127126
pickle.dump(fig, BytesIO(), pickle.HIGHEST_PROTOCOL)
128127

129128

130-
@cleanup
129+
# cleanup is removed for this one test, because it makes pytest
130+
# attempt to find tests in decorators.py, and generate an error at
131+
# ImageComparisonTest.Test()
132+
# @cleanup
131133
@image_comparison_2(baseline_images=['multi_pickle'],
132134
extensions=['png'], remove_text=True)
133135
def test_complete():

0 commit comments

Comments
 (0)