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.
2 parents b9e3577 + 40a0b51 commit 8b1e15eCopy full SHA for 8b1e15e
pytest_mpl/plugin.py
@@ -172,6 +172,7 @@ def item_function_wrapper(*args, **kwargs):
172
test_image = os.path.abspath(os.path.join(result_dir, filename))
173
174
fig.savefig(test_image, **savefig_kwargs)
175
+ plt.close(fig)
176
177
# Find path to baseline image
178
if baseline_remote:
@@ -202,6 +203,7 @@ def item_function_wrapper(*args, **kwargs):
202
203
os.makedirs(self.generate_dir)
204
205
fig.savefig(os.path.abspath(os.path.join(self.generate_dir, filename)), **savefig_kwargs)
206
207
pytest.skip("Skipping test, since generating data")
208
209
if item.cls is not None:
0 commit comments