8000 Update sklearn/utils/estimator_checks.py · NicolasHug/scikit-learn@ee44848 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee44848

Browse files
authored
Update sklearn/utils/estimator_checks.py
1 parent daebc40 commit ee44848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/utils/estimator_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def _mark_xfail_checks(estimator, check, pytest):
352352
def _skip_if_xfail(estimator, check):
353353
# wrap a check so that it's skipped with a warning if it's part of the
354354
# xfail_checks tag.
355-
xfail_checks = estimator._get_tags()['_xfail_checks'] or {}
355+
xfail_checks = estimator._get_tags().get('_xfail_checks', {})
356356
check_name = _set_check_estimator_ids(check)
357357

358358
if check_name not in xfail_checks:

0 commit comments

Comments
 (0)
0