-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH XFAIL in common tests with estimator tags (v3) #16502
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
ENH XFAIL in common tests with estimator tags (v3) #16502
Conversation
Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>
if xfail_checks: | ||
if check_name in xfail_checks: | ||
msg = xfail_checks[check_name] | ||
request.applymarker(pytest.mark.xfail(reason=msg)) |
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.
There is probably a way to make this work for contrib projects automatically with parametrize_with_checks
, but for now I just want something that we can use in scikit-learn as the ability to XFAIL is blocking multiple PRs.
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.
I'm. much happier with this..
Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>
Thanks @rth and @thomasjpfan. I think that we should look at the |
Thanks for the reviews! Looks like somebody broke master,
hope it's intermittent. If you have other comments @thomasjpfan let me know, we can address them in follow up PRs. |
A third version of #16306 and #16328
Puts the common checks to mark as xfail into the
_xfail_test
estimator tag.Hopefully addresses concerns raised in the two previous implementations. In particular, this would make the workflow identical between scikit-learn and contrib projects.
cc @thomasjpfan @jnothman @glemaitre