TST: temporary skip test_legend for matplotlib 3.8.0.dev (#2802)

This commit is contained in:
Joris Van den Bossche
2023-02-26 14:03:28 +01:00
committed by GitHub
parent aa40ec479b
commit ba2752dd2e
+8
View File
@@ -1,4 +1,5 @@
import itertools
from packaging.version import Version
import warnings
import numpy as np
@@ -223,6 +224,13 @@ class TestPointPlotting:
np.linspace(0, 0.0, 1.0, self.N), ax.collections[0].get_alpha()
)
# TODO temporary skip for mpl 3.8.0.dev
# (https://github.com/matplotlib/matplotlib/issues/25162)
@pytest.mark.skipif(
Version(matplotlib.__version__) >= Version("3.8.0.dev")
and Version(matplotlib.__version__) < Version("3.8.0"),
reason="failing with matplotlib dev",
)
def test_legend(self):
with warnings.catch_warnings(record=True) as _: # don't print warning
# legend ignored if color is given.