Skip to content

Commit 80a730c

Browse files
committed
TST: skip plotting warn testing on py3 (GH8647)
1 parent 5928075 commit 80a730c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/tests/test_graphics.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from pandas import Series, DataFrame, MultiIndex, PeriodIndex, date_range
1313
from pandas.compat import (range, lrange, StringIO, lmap, lzip, u, zip,
14-
iteritems, OrderedDict)
14+
iteritems, OrderedDict, PY3)
1515
from pandas.util.decorators import cache_readonly
1616
import pandas.core.common as com
1717
import pandas.util.testing as tm
@@ -1859,9 +1859,12 @@ def test_boxplot(self):
18591859
self.assertEqual(len(ax.lines),
18601860
self.bp_n_objects * len(numeric_cols))
18611861

1862-
with tm.assert_produces_warning(UserWarning):
1863-
axes = _check_plot_works(df.plot, kind='box',
1864-
subplots=True, logy=True)
1862+
# different warning on py3
1863+
if not PY3:
1864+
with tm.assert_produces_warning(UserWarning):
1865+
axes = _check_plot_works(df.plot, kind='box',
1866+
subplots=True, logy=True)
1867+
18651868
self._check_axes_shape(axes, axes_num=3, layout=(1, 3))
18661869
self._check_ax_scales(axes, yaxis='log')
18671870
for ax, label in zip(axes, labels):

0 commit comments

Comments
 (0)