-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+2] Remove nose-specific _named_check #10160
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
which was a nose-specific thing to have good names for tests using yield
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.
LGTM
So we have definitively dropped nosetests ?
Is it time to replace the yield tests (deprecated in pytest) by parametrized tests?
It depends what you mean by dropping nosetests. Since #9840, we do not run nose in the CIs and the doc has been updated to use pytest. Technically you can still run the tests with nose if you really want to ;-). |
I'll probably look at this at one point. I don't think it is that urgent because yield tests will be removed in pytest 4. |
Is there a way to print better names with pytest? Do we need to use parametrized tests for that? Right now the messages are uninformative. |
lgtm, though we need to replace it by a mechanism that works with pytest |
Yes parametrized tests is the way forward, for the nice naming you can do that with test ids: |
Why did you revert? |
Seems to be local only |
Yep that was a misclick (clicked on revert rather than delete branch), fortunately it was in PR mode, so it just created a branch. |
I think there's no hurry to use parameterize, but we should encourage it,
and familiarise ourselves with that pattern, for new contributions. perhaps
we also need to exemplify it a little, updating old tests, to give
contributors something to emulate.
|
which was a nose-specific thing to have good names for tests using yield
It was a nose-specific thing to have good names for tests using yield.
_named_check
has no effect for pytest. See #7317 for example for more details.