Skip to content

Commit 95c9e14

Browse files
committed
PEP8 for recent merge
1 parent 4c17f1c commit 95c9e14

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sklearn/tests/test_pipeline.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,23 @@ def test_pipeline_fit_params():
167167

168168
def 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

189189
def test_pipeline_methods_pca_svm():

0 commit comments

Comments
 (0)