Skip to content

Commit 6091c16

Browse files
committed
TST: skip assert for mpl 3.1+
1 parent 9a67ff4 commit 6091c16

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pandas/tests/plotting/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def setup_method(self, method):
3636

3737
self.mpl_ge_2_2_3 = plotting._compat._mpl_ge_2_2_3()
3838
self.mpl_ge_3_0_0 = plotting._compat._mpl_ge_3_0_0()
39+
self.mpl_ge_3_1_0 = plotting._compat._mpl_ge_3_1_0()
3940

4041
self.bp_n_objects = 7
4142
self.polycollection_factor = 2

pandas/tests/plotting/test_frame.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ def test_subplots(self):
383383
for ax in axes[:-2]:
384384
self._check_visible(ax.xaxis) # xaxis must be visible for grid
385385
self._check_visible(ax.get_xticklabels(), visible=False)
386-
self._check_visible(
387-
ax.get_xticklabels(minor=True), visible=False)
386+
if not (kind == 'bar' and self.mpl_ge_3_1_0):
387+
# change https://github.com/pandas-dev/pandas/issues/26714
388+
self._check_visible(
389+
ax.get_xticklabels(minor=True), visible=False)
388390
self._check_visible(ax.xaxis.get_label(), visible=False)
389391
self._check_visible(ax.get_yticklabels())
390392

0 commit comments

Comments
 (0)