Control: tags -1 patch

Remove failing test from test_plot_line
The "blarg" argument is propagated to matplotlib and there it raises an
AttributeError (and not a TypeError).
Since the test doesn't seem to have a rationale, it is removed in this
patch.

See the upstream discussion about whether this is the best way -- at
least it is a pragmatic fix.

Best regards

Ole
Author: Ole Streicher <oleb...@debian.org>
Description: Remove failing test from test_plot_line
 The "blarg" argument is propagated to matplotlib and there it raises an
 AttributeError (and not a TypeError).
 Since the test doesn't seem to have a rationale, it is removed in this
 patch.
--- a/pandas/tests/test_graphics.py
+++ b/pandas/tests/test_graphics.py
@@ -1317,10 +1317,6 @@
                                  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]))
 

Reply via email to