-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] Prototype 1 for strict check_estimator mode #16882
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
Conversation
OK, test failure is normal (it's because we print in a test, which is going to be removed of course). @rth @jnothman @thomasjpfan WDYT, are you OK with this idea of marking strict checks with a decorator? I'm not a fan of the use of the global var, interested in your input Thanks |
Thanks for giving this a go @NicolasHug ! If we want to avoid global variable, I guess the other solution is to mark the checks to skip in a decorator in some way (e.g. set an attribute), def strict_check(check):
setattr(check, 'strict', True)
# do we actually need to use the wrapper in this case?
# the signature is preserved as far as I can tell
return check then pass Otherwise yes, why not for decorators. |
Although the other use case this doesn't address is to run the test but skip /modify some of it's parts when If we do that, calling some function |
Yeah if we want to allow this I think we need to pass a |
(Thanks for the feedback!) |
Closes #14929
Fixes #13969
Fixes #16241
See also alternative #16890 and #17252
Probably too hacky but why not...