Skip to content

Commit

Permalink
Skip colormap patch test on matplotlib's where it's not relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Sep 18, 2022
1 parent 8174c03 commit a377fcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from seaborn.external import husl
from seaborn._compat import get_colormap
from seaborn.colors import xkcd_rgb, crayons
from seaborn.external.version import Version


class TestColorPalettes:
Expand Down Expand Up @@ -423,6 +424,7 @@ def test_html_repr(self):
for color in pal.as_hex():
assert color in html

@pytest.mark.skipif(Version(mpl.__version__) < Version("3.4.0"))
def test_colormap_display_patch(self):

orig_repr_png = mpl.colors.Colormap._repr_png_
Expand Down

0 comments on commit a377fcd

Please sign in to comment.