|
11 | 11 |
|
12 | 12 | from pandas import Series, DataFrame, MultiIndex, PeriodIndex, date_range
|
13 | 13 | from pandas.compat import (range, lrange, StringIO, lmap, lzip, u, zip,
|
14 |
| - iteritems, OrderedDict) |
| 14 | + iteritems, OrderedDict, PY3) |
15 | 15 | from pandas.util.decorators import cache_readonly
|
16 | 16 | import pandas.core.common as com
|
17 | 17 | import pandas.util.testing as tm
|
@@ -1859,9 +1859,12 @@ def test_boxplot(self):
|
1859 | 1859 | self.assertEqual(len(ax.lines),
|
1860 | 1860 | self.bp_n_objects * len(numeric_cols))
|
1861 | 1861 |
|
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 | + |
1865 | 1868 | self._check_axes_shape(axes, axes_num=3, layout=(1, 3))
|
1866 | 1869 | self._check_ax_scales(axes, yaxis='log')
|
1867 | 1870 | for ax, label in zip(axes, labels):
|
|
0 commit comments