Skip to content

Commit b25343c

Browse files
committed
TST: add nose import for skipped scipy tests
1 parent 6582d7b commit b25343c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pandas/tests/frame/test_missing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def _skip_if_no_pchip():
2323
try:
2424
from scipy.interpolate import pchip_interpolate # noqa
2525
except ImportError:
26+
import nose
2627
raise nose.SkipTest('scipy.interpolate.pchip missing')
2728

2829

pandas/tests/series/test_missing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ def _skip_if_no_pchip():
2222
try:
2323
from scipy.interpolate import pchip_interpolate # noqa
2424
except ImportError:
25+
import nose
2526
raise nose.SkipTest('scipy.interpolate.pchip missing')
2627

2728

2829
def _skip_if_no_akima():
2930
try:
3031
from scipy.interpolate import Akima1DInterpolator # noqa
3132
except ImportError:
33+
import nose
3234
raise nose.SkipTest('scipy.interpolate.Akima1DInterpolator missing')
3335

3436

0 commit comments

Comments
 (0)