Skip to content

Commit

Permalink
WILL THIS FIX CIRCLE?
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyoung committed May 3, 2017
1 parent fa7bdd9 commit 84ad896
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion pandas/tests/plotting/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,18 @@ def _ok_for_gaussian_kde(kind):
return True


@tm.mplskip
class TestPlotBase(tm.TestCase):

@classmethod
def setup_class(cls):
super(TestPlotBase, cls).setup_class()

try:
import matplotlib as mpl
mpl.use("Agg", warn=False)
except ImportError:
pytest.skip("matplotlib not installed")

def setup_method(self, method):

import matplotlib as mpl
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
_ok_for_gaussian_kde)


@tm.mplskip
class TestDataFramePlots(TestPlotBase):

def setup_method(self, method):
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/plotting/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pandas.tests.plotting.common import TestPlotBase


@tm.mplskip
class TestDataFrameGroupByPlots(TestPlotBase):

def test_series_groupby_plotting_nominally_works(self):
Expand Down

0 comments on commit 84ad896

Please sign in to comment.