[MRG] MNT Ignore xfail_checks in check_estimator#17219
[MRG] MNT Ignore xfail_checks in check_estimator#17219NicolasHug wants to merge 2 commits intoscikit-learn:masterfrom
Conversation
rth
left a comment
There was a problem hiding this comment.
Thanks @NicolasHug ! I like the fact that it's very simple.
I'm wondering if we should raise a warning for each xfailed test or not (in the _is_xfail function).
The more I think about it, the more I think the answer is no. To me it makes sense to rely on pytest for anything more than just ignoring the test. And I mean, |
rth
left a comment
There was a problem hiding this comment.
OK, LGTM. We do mention in the documentation that users should be very careful about _xfail_checks.
|
FWIW this is very similar to what I proposed in #16507. I changed my mind about not raising the warning. We raise the warning for skipped tests in |
|
Since |
|
Thanks for catching that! Should we use, I think the fact that |
|
Good catch, thanks, should be fixed.
Totally agree. I'm also quite puzzled by the need to pass |
|
Opened #17222 which is the same except that checks in the tag will be skipped with a SkipTestWarning. |
Fixes #16958
Alternative to and Closes #16963
Alternative to and Closes #17222
CC @thomasjpfan @rth.
I would prefer this approach, considering how much simpler it is. I agree with what @rth said: for a more advanced control, developers should be using
parametrize_with_checksand pytest.