You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xfail_checks tag only works with parametrize_with_checks #16958
Marking a test as xfail is very specific to pytest.
To make it work in check_estimator, I guess we would need to still assert the test, but catch it when it fails (since it is expected to) and convert it into a warning?
I feel like developers would expect it to work when simply calling check_estimator() as well. Any reason this isn't supported?
It should works, in the sense that xfail marked tests should be skipped (as far as I remember the PRs where it was introduced). If they aren't that's it indeed a bug.
Activity
thomasjpfan commentedon Apr 19, 2020
Marking a test as
xfailis very specific to pytest.To make it work in
check_estimator, I guess we would need to still assert the test, but catch it when it fails (since it is expected to) and convert it into a warning?NicolasHug commentedon Apr 19, 2020
Shouldn't we make the tag more general such that:
@parametrize_with_checkscheck_estimator(), possibly with a warning?rth commentedon Apr 19, 2020
It should works, in the sense that xfail marked tests should be skipped (as far as I remember the PRs where it was introduced). If they aren't that's it indeed a bug.
NicolasHug commentedon Apr 19, 2020
On master, with
check_estimator(),NuSVCfails oncheck_class_weight_classifierswhich is marked with thexfail_checkstag.rth commentedon Apr 19, 2020
You are right. I probably though it would be good it if worked that way, but haven't actually implemented it lol.