@@ -214,14 +214,14 @@ def test_transformers():
214214 print ()
215215 succeeded = False
216216 continue
217-
217+
218218 if hasattr (trans , 'transform' ):
219219 if Trans in (_PLS , PLSCanonical , PLSRegression , CCA , PLSSVD ):
220220 X_pred2 = trans .transform (X , y_ )
221221 X_pred3 = trans .fit_transform (X , y = y_ )
222222 else :
223223 X_pred2 = trans .transform (X )
224- X_pred3 = trans .fit_transform (X ,y = y_ )
224+ X_pred3 = trans .fit_transform (X , y = y_ )
225225 if isinstance (X_pred , tuple ) and isinstance (X_pred2 , tuple ):
226226 for x_pred , x_pred2 , x_pred3 in zip (X_pred , X_pred2 , X_pred3 ):
227227 assert_array_almost_equal (
@@ -540,7 +540,7 @@ def test_classifiers_classes():
540540 y = 2 * y + 1
541541 classes = np .unique (y )
542542 # TODO: make work with next line :)
543- #y = y.astype(np.str)
543+ # y = y.astype(np.str)
544544 for name , Clf in classifiers :
545545 if name in dont_test :
546546 continue
@@ -655,7 +655,7 @@ def test_configure():
655655 with warnings .catch_warnings ():
656656 # The configuration spits out warnings when not finding
657657 # Blas/Atlas development headers
658- warnings .simplefilter ('ignore' , UserWarning )
658+ warnings .simplefilter ('ignore' , UserWarning )
659659 execfile ('setup.py' , dict (__name__ = '__main__' ))
660660 finally :
661661 sys .argv = old_argv
0 commit comments