From a2754a4231150280836b995461d206dbdcf04f9b Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Wed, 6 Jul 2016 15:27:40 +0200 Subject: [PATCH 1/2] Remove failing test from test_plot_line The "blarg" argument is propagated to matplotlib and there it raises an AttributeError (and not a TypeError). However, since the test doesn't seem to have a rationale, it is removed here. --- pandas/tests/test_graphics.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index bd19a83ce2b64..61140c384e8c2 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -1329,10 +1329,6 @@ def test_plot(self): subplots=True, use_index=False) self._check_axes_shape(axes, axes_num=4, layout=(4, 1)) - df = DataFrame({'x': [1, 2], 'y': [3, 4]}) - with tm.assertRaises(TypeError): - df.plot.line(blarg=True) - df = DataFrame(np.random.rand(10, 3), index=list(string.ascii_letters[:10])) From 6d9304e38b7490fadc07f92a3669dd7e3ad2a1ad Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Wed, 6 Jul 2016 15:36:18 +0200 Subject: [PATCH 2/2] Document bugfix for test_graphics.py in whatsnew --- doc/source/whatsnew/v0.18.2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/whatsnew/v0.18.2.txt b/doc/source/whatsnew/v0.18.2.txt index be1f745537d05..a345629dde6d5 100644 --- a/doc/source/whatsnew/v0.18.2.txt +++ b/doc/source/whatsnew/v0.18.2.txt @@ -528,3 +528,5 @@ Bug Fixes - Bug in ``Categorical.remove_unused_categories()`` changes ``.codes`` dtype to platform int (:issue:`13261`) - Bug in ``groupby`` with ``as_index=False`` returns all NaN's when grouping on multiple columns including a categorical one (:issue:`13204`) + +- Bug in ``test_graphics`` to pass the tests with matplotlib 1.9.2