Skip to content

Commit a711b42

Browse files
yarikopticjorisvandenbossche
authored andcommitted
BF(TST): allow AttributeError being raised (in addition to TypeError) from mpl (pandas-dev#13641)
Closes pandas-dev#13570
1 parent 6f0a020 commit a711b42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/test_graphics.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,8 @@ def test_plot(self):
13301330
self._check_axes_shape(axes, axes_num=4, layout=(4, 1))
13311331

13321332
df = DataFrame({'x': [1, 2], 'y': [3, 4]})
1333-
with tm.assertRaises(TypeError):
1333+
# mpl >= 1.5.2 (or slightly below) throw AttributError
1334+
with tm.assertRaises((TypeError, AttributeError)):
13341335
df.plot.line(blarg=True)
13351336

13361337
df = DataFrame(np.random.rand(10, 3),

0 commit comments

Comments
 (0)