-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
@network decorator can mask failed tests #5816
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
Comments
I made a decorator for that |
That's close but not quite it, I can't think of a case where it's useful given the
Isn't that another way of saying "if your test is a connectivity check", since I can't What's needed is to catch only network-related exception and qualify them by a connectivity check. OTOH, we could do a connectivity check prior to any network test, perhaps via a singleton #5812 just exposed the problem, we either need to apply a fix everywhere or let it go. thoughts? |
I wrote the qualification poorly. The point is that, if the test fails, it |
if @jtratner 's clarification is true, I say we just fold the check into |
@jtratner you have this one? |
let me make sure this actually works the way it does. Sorry I've been snowed under with work right now and so I've gone a bit incommunicado, catching up a bit tonight. |
btw - @y-p do you have an example where this failed inappropriately (and, if so, I'll try and fix, otherwise I'll clarify the docstring) |
this should fail with a non existent URL eg yahoo changes it |
I see what you mean - let me put together a PR that removes current |
lost you, doesn't #5812 count as failed inappropriately? |
That would mess up the nosetests selector functionality. |
@y-p I think we're saying the same thing: you okay if I remove |
yep. |
bumped to 0.14.0 |
See discussion #5812
The skip behaviour was motivated by travis failing tests due to
wonky net cinnectivity which can mask actual problems such as broken urls.
Perhaps make the behavior conditional on environment (travis can be detected via
environment vars)
The text was updated successfully, but these errors were encountered: