Skip to content

Commit d189704

Browse files
committed
TST/BUG: do not call regular density tests when testing kde color
1 parent 1a67a8f commit d189704

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/test_graphics.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,10 @@ def test_kde(self):
196196
@slow
197197
def test_kde_color(self):
198198
_skip_if_no_scipy()
199-
_check_plot_works(self.ts.plot, kind='kde')
200-
_check_plot_works(self.ts.plot, kind='density')
201199
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')
200+
lines = ax.get_lines()
201+
self.assertEqual(len(lines), 1)
202+
self.assertEqual(lines[0].get_color(), 'r')
204203

205204
@slow
206205
def test_autocorrelation_plot(self):

0 commit comments

Comments
 (0)