Skip to content

Commit f0ea701

Browse files
committed
REF: use pytest.importorskip
1 parent dd9efd7 commit f0ea701

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pandas/tests/plotting/test_style.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
from contextlib import suppress
2-
31
import pytest
42

5-
import pandas.util._test_decorators as td
6-
73
from pandas import Series
84

9-
with suppress(ImportError):
10-
from pandas.plotting._matplotlib.style import get_standard_colors
5+
pytest.importorskip("matplotlib")
6+
from pandas.plotting._matplotlib.style import get_standard_colors
117

128

13-
@td.skip_if_no_mpl
149
class TestGetStandardColors:
1510
@pytest.mark.parametrize(
1611
"num_colors, expected",

0 commit comments

Comments
 (0)