diff --git a/geopandas/tests/test_plotting.py b/geopandas/tests/test_plotting.py index e4d288e..7036571 100644 --- a/geopandas/tests/test_plotting.py +++ b/geopandas/tests/test_plotting.py @@ -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.