Skip to content

Commit 2dc0eeb

Browse files
committed
Fix failure
1 parent 02cb47e commit 2dc0eeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/plotting/test_series.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ def test_errorbar_plot(self):
767767
s.plot(yerr=np.arange(11))
768768

769769
s_err = ['zzz'] * 10
770-
with pytest.raises(TypeError):
770+
exc = TypeError if self.mpl_ge_2_1_0 else ValueError
771+
with pytest.raises(exc):
771772
s.plot(yerr=s_err)
772773

773774
# This XPASSES when tested with mpl == 3.0.1

0 commit comments

Comments
 (0)