Skip to content

Commit 84ad896

Browse files
committed
WILL THIS FIX CIRCLE?
1 parent fa7bdd9 commit 84ad896

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

pandas/tests/plotting/common.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,18 @@ def _ok_for_gaussian_kde(kind):
4141
return True
4242

4343

44-
@tm.mplskip
4544
class TestPlotBase(tm.TestCase):
4645

46+
@classmethod
47+
def setup_class(cls):
48+
super(TestPlotBase, cls).setup_class()
49+
50+
try:
51+
import matplotlib as mpl
52+
mpl.use("Agg", warn=False)
53+
except ImportError:
54+
pytest.skip("matplotlib not installed")
55+
4756
def setup_method(self, method):
4857

4958
import matplotlib as mpl

pandas/tests/plotting/test_frame.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
_ok_for_gaussian_kde)
2929

3030

31-
@tm.mplskip
3231
class TestDataFramePlots(TestPlotBase):
3332

3433
def setup_method(self, method):

pandas/tests/plotting/test_groupby.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pandas.tests.plotting.common import TestPlotBase
1212

1313

14-
@tm.mplskip
1514
class TestDataFrameGroupByPlots(TestPlotBase):
1615

1716
def test_series_groupby_plotting_nominally_works(self):

0 commit comments

Comments
 (0)