File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -167,23 +167,23 @@ def test_pipeline_fit_params():
167167
168168def test_pipeline_raise_set_params_error ():
169169 # Test pipeline raises set params error message for nested models.
170- pipe = Pipeline ([('cls' , LinearRegression ())])
171-
170+ pipe = Pipeline ([('cls' , LinearRegression ())])
171+
172172 # expected error message
173- error_msg = ('Invalid parameter %s for estimator %s. '
174- 'Check the list of available parameters '
175- 'with `estimator.get_params().keys()`.' )
173+ error_msg = ('Invalid parameter %s for estimator %s. '
174+ 'Check the list of available parameters '
175+ 'with `estimator.get_params().keys()`.' )
176176
177- assert_raise_message (ValueError ,
177+ assert_raise_message (ValueError ,
178178 error_msg % ('fake' , 'Pipeline' ),
179179 pipe .set_params ,
180180 fake = 'nope' )
181-
181+
182182 # nested model check
183183 assert_raise_message (ValueError ,
184184 error_msg % ("fake" , pipe ),
185185 pipe .set_params ,
186- fake__estimator = 'nope' )
186+ fake__estimator = 'nope' )
187187
188188
189189def test_pipeline_methods_pca_svm ():
You can’t perform that action at this time.
0 commit comments