From 00ae84b233eb87da41b4b84e38f04a1ced67c1e0 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 13 Jul 2016 14:42:00 +0000 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 Gbp-Pq: Name changeset_46af7cf0f8e0477f6cc7454aa786a573228f0ac3.diff --- 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 604cd89d..e3ffcb76 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -1318,7 +1318,8 @@ class TestDataFramePlots(TestPlotBase): 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), -- 2.30.2