diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index fac6a4d83e13b..1cc5e2a99148b 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -28,6 +28,15 @@ import pandas.tools.plotting as plotting +def _skip_if_mpl_14_or_dev_boxplot(): + # GH 8382 + # Boxplot failures on 1.4 and 1.4.1 + # Don't need try / except since that's done at class level + import matplotlib + if matplotlib.__version__ in ('1.4.0', '1.5.x'): + raise nose.SkipTest("Matplotlib Regression in 1.4 and current dev.") + + def _skip_if_no_scipy_gaussian_kde(): try: import scipy @@ -1790,6 +1799,7 @@ def test_bar_log_subplots(self): @slow def test_boxplot(self): + _skip_if_mpl_14_or_dev_boxplot() df = self.hist_df series = df['height'] numeric_cols = df._get_numeric_data().columns @@ -1823,6 +1833,7 @@ def test_boxplot(self): @slow def test_boxplot_vertical(self): + _skip_if_mpl_14_or_dev_boxplot() df = self.hist_df series = df['height'] numeric_cols = df._get_numeric_data().columns @@ -1982,6 +1993,7 @@ def _check_ax_limits(col, ax): @slow def test_boxplot_empty_column(self): + _skip_if_mpl_14_or_dev_boxplot() df = DataFrame(np.random.randn(20, 4)) df.loc[:, 0] = np.nan _check_plot_works(df.boxplot, return_type='axes')