Skip to content

Commit 255fa04

Browse files
committed
skip some plotting tests if scipy is not installed
1 parent cef8ae7 commit 255fa04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_graphics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ def is_grid_on():
462462

463463
spndx=1
464464
for kind in kinds:
465+
if not _ok_for_gaussian_kde(kind):
466+
continue
467+
465468
self.plt.subplot(1,4*len(kinds),spndx); spndx+=1
466469
mpl.rc('axes',grid=False)
467470
obj.plot(kind=kind, **kws)
@@ -3430,6 +3433,8 @@ def test_memory_leak(self):
34303433

34313434
results = {}
34323435
for kind in plotting._plot_klass.keys():
3436+
if not _ok_for_gaussian_kde(kind):
3437+
continue
34333438
args = {}
34343439
if kind in ['hexbin', 'scatter', 'pie']:
34353440
df = self.hexbin_df

0 commit comments

Comments
 (0)