8000 PEP8 Fix · scikit-learn/scikit-learn@79a620b · GitHub
[go: up one dir, main page]

Skip to content

Commit 79a620b

Browse files
committed
PEP8 Fix
1 parent 874409d commit 79a620b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sklearn/utils/testing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def assert_not_in(x, container):
7474
except ImportError:
7575
# for Py 2.6
7676
def assert_raises_regex(expected_exception, expected_regexp,
77-
callable_obj=None, *args, **kwargs):
77+
callable_obj=None, *args, **kwargs):
7878
"""Helper function to check for message patterns in exceptions"""
7979

8080
not_raised = False
@@ -227,7 +227,7 @@ def assert_warns_message(warning_class, message, func, *args, **kw):
227227
if not check_in_message(msg):
228228
raise AssertionError("The message received ('%s') for <%s> is "
229229
"not the one you expected ('%s')"
230-
% (msg, func.__name__, message
230+
% (msg, func.__name__, message
231231
))
232232
return result
233233

@@ -518,7 +518,7 @@ def all_estimators(include_meta_estimators=False, include_other=False,
518518
estimators only of these specific types.
519519
520520
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
522522
included in the passed list. Two of the many possible values include
523523
['decision_function', 'predict_proba'], ['partial_fit'].
524524
@@ -581,8 +581,8 @@ def is_abstract(c):
581581
" %s." % repr(type_filter))
582582

583583
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]
586586

587587
estimators = [est for est in estimators
588588
if all(methods_exist(est[1]))]

0 commit comments

Comments
 (0)
0