-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT Ignore xfail_checks tag in check_estimator, with warning #17222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MNT Ignore xfail_checks tag in check_estimator, with warning #17222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, xfail_checks
skips the whole test and raises a warning. I think I am happy with this.
checks_generator = chain.from_iterable( | ||
check_estimator(estimator, generate_only=True) | ||
for estimator in estimators) | ||
names = (type(estimator).__name__ for estimator in estimators) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generators everywhere!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor improvement otherwise LGTM!
I'll add Thomas as co-author when merging given all the work he did on this.
This reverts commit ee44848.
Merging, thanks for the reviews, I put you both as co-authors |
…learn#17222) Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com> Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
…learn#17222) Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com> Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Fixes #16958
Alternative to and Closes #16963
Alternative to and Closes #17219
Same as #17219 , but raises a warning when a check is skipped.
CC @rth @thomasjpfan