Skip to content

Commit d247c62

Browse files
Chang Shewesm
Chang She
authored andcommitted
TST: separated test case
1 parent 09e93c3 commit d247c62

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/test_graphics.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def setUp(self):
3939

4040
@slow
4141
def test_plot(self):
42-
import matplotlib.pyplot as plt
43-
import matplotlib.colors as colors
4442
_check_plot_works(self.ts.plot, label='foo')
4543
_check_plot_works(self.ts.plot, use_index=False)
4644
_check_plot_works(self.ts.plot, rot=0)
@@ -55,6 +53,11 @@ def test_plot(self):
5553

5654
Series(np.random.randn(10)).plot(kind='bar',color='black')
5755

56+
@slow
57+
def test_bar_colors(self):
58+
import matplotlib.pyplot as plt
59+
import matplotlib.colors as colors
60+
5861
default_colors = 'brgyk'
5962
custom_colors = 'rgcby'
6063

0 commit comments

Comments
 (0)