We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a67a8f commit d189704Copy full SHA for d189704
pandas/tests/test_graphics.py
@@ -196,11 +196,10 @@ def test_kde(self):
196
@slow
197
def test_kde_color(self):
198
_skip_if_no_scipy()
199
- _check_plot_works(self.ts.plot, kind='kde')
200
- _check_plot_works(self.ts.plot, kind='density')
201
ax = self.ts.plot(kind='kde', logy=True, color='r')
202
- self.assert_(ax.get_lines()[0].get_color() == 'r')
203
- self.assert_(ax.get_lines()[1].get_color() == 'r')
+ lines = ax.get_lines()
+ self.assertEqual(len(lines), 1)
+ self.assertEqual(lines[0].get_color(), 'r')
204
205
206
def test_autocorrelation_plot(self):
0 commit comments