File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 3
3
from os .path import join
4
4
import warnings
5
5
6
- import numpy as np
7
-
8
6
from sklearn .utils import IS_PYPY
9
7
from sklearn .utils ._testing import SkipTest
10
8
from sklearn .utils ._testing import check_skip_network
@@ -72,6 +70,13 @@ def setup_grid_search():
72
70
raise SkipTest ("Skipping grid_search.rst, pandas not installed" )
73
71
74
72
73
+ def setup_preprocessing ():
74
+ try :
75
+ import pandas # noqa
76
+ except ImportError :
77
+ raise SkipTest ("Skipping preprocessing.rst, pandas not installed" )
78
+
79
+
75
80
def setup_unsupervised_learning ():
76
81
try :
77
82
import skimage # noqa
@@ -105,5 +110,7 @@ def pytest_runtest_setup(item):
105
110
setup_impute ()
106
111
elif fname .endswith ('modules/grid_search.rst' ):
107
112
setup_grid_search ()
113
+ elif fname .endswith ('modules/preprocessing.rst' ):
114
+ setup_preprocessing ()
108
115
elif fname .endswith ('statistical_inference/unsupervised_learning.rst' ):
109
116
setup_unsupervised_learning ()
You can’t perform that action at this time.
0 commit comments