Closed bersbersbers closed 11 months ago
Thanks @bersbersbers for reporting this, we address this deprecation warning 👍
@bersbersbers I'll note that I've been fixing a lot of these in my MetPy test suite. In all cases, these weren't actually problems with the current release of pytest-mpl, but were separate tests that were creating figures (more as "smoke tests") and weren't using the @pytest.mark.mpl_image_compare
decorator. I was able to silence all of them by making sure those tests called plt.close(fig)
before the test ended.
@dopplershift thanks - there is a big chance you are right! I'll check that tomorrow and let you know.
@dopplershift was right - I was accidentally creating a plot during test collection, which pytest-mpl
could not be aware of. The warning should actually be considered helpful.
I am getting this warning on
matplotlib
3.8: