Skip to content

Commit

Permalink
skips
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Aug 21, 2017
1 parent 4d8f2f9 commit 801b242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pandas/tests/frame/test_rank.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import pytest
from datetime import timedelta, datetime
from distutils.version import LooseVersion
from numpy import nan
Expand Down Expand Up @@ -195,6 +196,7 @@ def test_rank_axis(self):
def test_rank_methods_frame(self):
tm.skip_if_no_package('scipy', min_version='0.13',
app='scipy.stats.rankdata')
pytest.importorskip('scipy.stats.special')
import scipy
from scipy.stats import rankdata

Expand Down
1 change: 1 addition & 0 deletions pandas/tests/series/test_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TestSeriesRank(TestData):

def test_rank(self):
tm._skip_if_no_scipy()
pytest.importorskip('scipy.stats.special')
from scipy.stats import rankdata

self.ts[::2] = np.nan
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/test_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ def test_resample_dtype_preservation(self):

def test_resample_dtype_coerceion(self):

pytest.importorskip('scipy')
pytest.importorskip('scipy.interpolate')

# GH 16361
df = {"a": [1, 3, 1, 4]}
Expand Down

0 comments on commit 801b242

Please sign in to comment.