From 46af7cf0f8e0477f6cc7454aa786a573228f0ac3 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 13 Jul 2016 11:00:30 -0400 Subject: [PATCH] BF(TST): allow AttributeError being raised (in addition to TypeError) from mpl origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827938 --- pandas/tests/test_graphics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 3a5b0117948b7..5493eb37c358b 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -1330,7 +1330,8 @@ def test_plot(self): self._check_axes_shape(axes, axes_num=4, layout=(4, 1)) df = DataFrame({'x': [1, 2], 'y': [3, 4]}) - with tm.assertRaises(TypeError): + # mpl >= 1.5.2 (or slightly below) throw AttributError + with tm.assertRaises((TypeError, AttributeError)): df.plot.line(blarg=True) df = DataFrame(np.random.rand(10, 3),