8000 [MRG+2] Remove nose-specific _named_check by lesteve · Pull Request #10160 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

lesteve
Copy link
Member
@lesteve lesteve commented Nov 17, 2017

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.

which was a nose-specific thing to have good names for tests using yield
@lesteve lesteve changed the title Remove nose-specific _named_check [MRG] Remove nose-specific _named_check Nov 17, 2017
Copy link
Member
@TomDLT TomDLT left a 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?

@TomDLT TomDLT changed the title [MRG] Remove nose-specific _named_check [MRG+1] Remove nose-specific _named_check Nov 17, 2017
@lesteve
Copy link
Member Author
lesteve commented Nov 17, 2017

So we have definitively dropped nosetests ?

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 ;-).

@lesteve
Copy link
Member Author

Is it time to replace the yield tests (deprecated in pytest) by parametrized tests?

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.

@amueller
Copy link
Member

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.

@amueller
Copy link
Member

lgtm, though we need to replace it by a mechanism that works with pytest

@amueller amueller changed the title [MRG+1] Remove nose-specific _named_check [MRG+2] Remove nose-specific _named_check Nov 17, 2017
@lesteve
Copy link
Member Author
lesteve commented Nov 17, 2017

Is there a way to print better names with pytest? Do we need to use parametrized tests for that?

Yes parametrized tests is the way forward, for the nice naming you can do that with test ids:
https://docs.pytest.org/en/latest/example/parametrize.html#different-options-for-test-ids

@amueller amueller merged commit a13a7d8 into scikit-learn:master Nov 17, 2017
lesteve added a commit that referenced this pull request Nov 17, 2017
@lesteve lesteve deleted the remove-named-check branch November 17, 2017 17:40
@amueller
Copy link
Member

Why did you revert?

@TomDLT
Copy link
Member
TomDLT commented Nov 17, 2017

Seems to be local only

@lesteve
Copy link
Member Author
lesteve commented Nov 19, 2017

Yep that was a misclick (clicked on revert rather than delete branch), fortunately it was in PR mode, so it just created a branch.

@jnothman
Copy link
Member
jnothman commented Nov 20, 2017 via email

jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
which was a nose-specific thing to have good names for tests using yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0