diff --git a/scikits/learn/feature_extraction/tests/test_text.py b/scikits/learn/feature_extraction/tests/test_text.py
index 6e3aa057527c45d7ea971f54837c007947753c00..38b3983c9755d9dae467b7479e54812170114463 100644
--- a/scikits/learn/feature_extraction/tests/test_text.py
+++ b/scikits/learn/feature_extraction/tests/test_text.py
@@ -246,12 +246,10 @@ def test_dense_vectorizer_pipeline_grid_selection():
                          ('svc', DenseLinearSVC())])
 
     parameters = {
-        'vect__analyzer': (WordNGramAnalyzer(min_n=1, max_n=1),
-                           WordNGramAnalyzer(min_n=1, max_n=2)),
+        'vect__analyzer__max_n': (1, 2),
         'svc__loss'  : ('l1', 'l2')
     }
 
-
     # find the best parameters for both the feature extraction and the
     # classifier
     grid_search = GridSearchCV(pipeline, parameters, n_jobs=1)