Skip to content

Commit 9b63bfc

Browse files
author
Tom Augspurger
committed
Merge pull request #8398 from TomAugspurger/mpl-dev-boxplot-skips
TST: Skip failing boxplot tests on mpl 1.4+
2 parents d3976f5 + 6dc9eb9 commit 9b63bfc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/tests/test_graphics.py

+12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
import pandas.tools.plotting as plotting
2929

3030

31+
def _skip_if_mpl_14_or_dev_boxplot():
32+
# GH 8382
33+
# Boxplot failures on 1.4 and 1.4.1
34+
# Don't need try / except since that's done at class level
35+
import matplotlib
36+
if matplotlib.__version__ in ('1.4.0', '1.5.x'):
37+
raise nose.SkipTest("Matplotlib Regression in 1.4 and current dev.")
38+
39+
3140
def _skip_if_no_scipy_gaussian_kde():
3241
try:
3342
import scipy
@@ -1790,6 +1799,7 @@ def test_bar_log_subplots(self):
17901799

17911800
@slow
17921801
def test_boxplot(self):
1802+
_skip_if_mpl_14_or_dev_boxplot()
17931803
df = self.hist_df
17941804
series = df['height']
17951805
numeric_cols = df._get_numeric_data().columns
@@ -1823,6 +1833,7 @@ def test_boxplot(self):
18231833

18241834
@slow
18251835
def test_boxplot_vertical(self):
1836+
_skip_if_mpl_14_or_dev_boxplot()
18261837
df = self.hist_df
18271838
series = df['height']
18281839
numeric_cols = df._get_numeric_data().columns
@@ -1982,6 +1993,7 @@ def _check_ax_limits(col, ax):
19821993

19831994
@slow
19841995
def test_boxplot_empty_column(self):
1996+
_skip_if_mpl_14_or_dev_boxplot()
19851997
df = DataFrame(np.random.randn(20, 4))
19861998
df.loc[:, 0] = np.nan
19871999
_check_plot_works(df.boxplot, return_type='axes')

0 commit comments

Comments
 (0)