Skip to content

Commit 765836f

Browse files
committed
TST: mark test skip if no mpl
1 parent 37734e8 commit 765836f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/plotting/test_style.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
from contextlib import suppress
2+
13
import pytest
24

5+
import pandas.util._test_decorators as td
6+
37
from pandas import Series
48

5-
from pandas.plotting._matplotlib.style import get_standard_colors
9+
with suppress(ImportError):
10+
from pandas.plotting._matplotlib.style import get_standard_colors
611

712

13+
@td.skip_if_no_mpl
814
class TestGetStandardColors:
915
@pytest.mark.parametrize(
1016
"num_colors, expected",

0 commit comments

Comments
 (0)