Skip to content

Commit b0ab467

Browse files
authored
fixed assert in test
1 parent c7cf82d commit b0ab467

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/plotting/test_misc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,7 @@ def test_bar_plt_xaxis_intervalrange(self):
610610
index=[interval_range(0, 2)],
611611
)
612612
_check_plot_works(s.plot.bar)
613-
assert s.plot.bar().get_xticklabels() == expected
613+
assert all(
614+
(a.get_text() == b.get_text())
615+
for a, b in zip(s.plot.bar().get_xticklabels(), expected)
616+
)

0 commit comments

Comments
 (0)