8000 ADD another VectorizerMixin test · seckcoder/scikit-learn@9a012e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a012e8

Browse files
committed
ADD another VectorizerMixin test
1 parent 789d1d3 commit 9a012e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/feature_extraction/tests/test_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ def test_vectorizer_mixin():
439439
vm.strip_accents = 'ascii'
440440
assert_equal(vm.build_preprocessor(), strip_accents_ascii)
441441

442+
# error with bad analyzer
443+
vm.analyzer = 'invalid_analyzer'
444+
assert_raises(ValueError, vm.build_analyzer)
445+
442446

443447
def test_hashing_vectorizer():
444448
v = HashingVectorizer()

0 commit comments

Comments
 (0)
0