File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ccache -M 512M
25
25
export CCACHE_COMPRESS=1
26
26
export PATH=/usr/lib/ccache:$PATH
27
27
28
- pip install -e .
28
+ pip install -vv - e .
29
29
30
- pytest -n 1 sklearn/
30
+ pytest -n 1 -Wignore::DeprecationWarning -Wignore::FutureWarning sklearn/
31
31
make test-sphinxext test-doc
Original file line number Diff line number Diff line change 17
17
raise ('Your version of pytest is too old, you should have at least '
18
18
'pytest >= {} installed.' .format (PYTEST_MIN_VERSION ))
19
19
20
+
20
21
def pytest_collection_modifyitems (config , items ):
21
22
22
23
# FeatureHasher is not compatible with PyPy
23
24
if platform .python_implementation () == 'PyPy' :
24
25
skip_marker = pytest .mark .skip (
25
26
reason = 'FeatureHasher is not compatible with PyPy' )
26
27
for item in items :
27
- if item .name == 'sklearn.feature_extraction.hashing.FeatureHasher' :
28
+ if item .name in (
29
+ 'sklearn.feature_extraction.hashing.FeatureHasher' ,
30
+ 'sklearn.feature_extraction.text.HashingVectorizer' ):
28
31
item .add_marker (skip_marker )
29
32
30
33
# numpy changed the str/repr formatting of numpy arrays in 1.14. We want to
Original file line number Diff line number Diff line change @@ -1108,6 +1108,8 @@ def test_vectorizers_invalid_ngram_range(vec):
1108
1108
message = ("Invalid value for ngram_range=%s "
1109
1109
"lower boundary larger than the upper boundary."
1110
1110
% str (invalid_range ))
1111
+ if isinstance (vec , HashingVectorizer ):
1112
+ pytest .xfail (reason = 'HashingVectorizer not supported on PyPy' )
1111
1113
1112
1114
assert_raise_message (
1113
1115
ValueError , message , vec .fit , ["good news everyone" ])
@@ -1119,6 +1121,7 @@ def test_vectorizers_invalid_ngram_range(vec):
1119
1121
ValueError , message , vec .transform , ["good news everyone" ])
1120
1122
1121
1123
1124
+ @fails_if_pypy
1122
1125
def test_vectorizer_stop_words_inconsistent ():
1123
1126
if PY2 :
1124
1127
lstr = "[u'and', u'll', u've']"
You can’t perform that action at this time.
0 commit comments