mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-11 12:10:59 +08:00
TST: temporary skip test_legend for matplotlib 3.8.0.dev (#2802)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user