-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+1] make more explicit which checks are run #7317
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
@@ -75,6 +75,11 @@ | |||
"GradientBoostingClassifier", "GradientBoostingRegressor"] | |||
|
|||
|
|||
def _set_test_name(function, name): | |||
function.description = "sklearn.tests.test_common.{0}({1})".format(function.__name__, name) |
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.
PEP8!
We have flake8 onto you and your rampant violations of PEP8, @amueller! |
PS: yes, I like this. |
ugh. So can we configure flake8 for more reasonable line-length ;) |
If we merged/closed all our pull requests, then ran PEP8 on the whole codebase, at least we could be confident not to induce too many unnecessary rebases! I think organic improvement will do okay. |
I appreciate this PR to get more informative test names in the nose reporting. But wouldn't it even better to also keep the test_common function names in the test names? For instance:
Edit: Actually by reading the code it does not seem that easy to implement this suggestion. If there is no easy way to do it I am fine with keeping @amueller's current |
The estimator's name is there. The test name is not. |
traceback? |
This LGTM as a first step. |
Alright let's merge this. |
thanks for the reviews :) |
Somehow this isn't working right for me in CIs. See my list of failed runs at #7411 (where the same tests passed on my own machine). It seems to derive from setting |
It says |
Ah, I see now. I was only concerned with the passing tests, but it seems it doesn't work for the failing tests. You are right. |
Ah, I see what you mean now: it's a problem with how nose evaluates the On 13 September 2016 at 23:19, Andreas Mueller notifications@github.com
|
I think so. |
This makes it more clear which common tests are actually run.
With this PR, the output of the common tests is something like
instead just the test name over and over (as is in master):
I did this so I can find where the deprecation warnings in #7255 come from, but I think it's generally helpful.