@@ -74,7 +74,7 @@ def assert_not_in(x, container):
74
74
except ImportError :
75
75
# for Py 2.6
76
76
def assert_raises_regex (expected_exception , expected_regexp ,
77
- callable_obj = None , * args , ** kwargs ):
77
+ callable_obj = None , * args , ** kwargs ):
78
78
"""Helper function to check for message patterns in exceptions"""
79
79
80
80
not_raised = False
@@ -227,7 +227,7 @@ def assert_warns_message(warning_class, message, func, *args, **kw):
227
227
if not check_in_message (msg ):
228
228
raise AssertionError ("The message received ('%s') for <%s> is "
229
229
"not the one you expected ('%s')"
230
- % (msg , func .__name__ , message
230
+ % (msg , func .__name__ , message
231
231
))
232
232
return result
233
233
@@ -518,7 +518,7 @@ def all_estimators(include_meta_estimators=False, include_other=False,
518
518
estimators only of these specific types.
519
519
520
520
method_filter : list of strings or None or empty list, default=None
521
- Include estimators that have all the methods whose names are
521
+ Include estimators that have all the methods whose names are
522
522
included in the passed list. Two of the many possible values include
523
523
['decision_function', 'predict_proba'], ['partial_fit'].
524
524
@@ -581,8 +581,8 @@ def is_abstract(c):
581
581
" %s." % repr (type_filter ))
582
582
583
583
if method_filter not in (None , []):
584
- methods_exist = lambda est :[hasattr (est , method )
585
- for method in method_filter ]
584
+ methods_exist = lambda est : [hasattr (est , method )
585
+ for method in method_filter ]
586
586
587
587
estimators = [est for est in estimators
588
588
if all (methods_exist (est [1 ]))]
0 commit comments