Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92a395 commit 9450c33Copy full SHA for 9450c33
sklearn/feature_extraction/tests/test_text.py
@@ -30,7 +30,6 @@
30
from sklearn.utils import IS_PYPY
31
from sklearn.utils._testing import (assert_almost_equal,
32
assert_raise_message,
33
- assert_no_warnings,
34
fails_if_pypy,
35
assert_allclose_dense_sparse,
36
skip_if_32bit)
@@ -1215,7 +1214,9 @@ def test_vectorizer_stop_words_inconsistent():
1215
1214
assert _check_stop_words_consistency(vec) is False
1216
1217
# Only one warning per stop list
1218
- assert_no_warnings(vec.fit_transform, ['hello world'])
+ with pytest.warns(None) as record:
+ vec.fit_transform(['hello world'])
1219
+ assert not len(record)
1220
assert _check_stop_words_consistency(vec) is None
1221
1222
# Test caching of inconsistency assessment
0 commit comments