-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Skip tests on network error #3893
Conversation
# sanity checking | ||
t= np.array(pan) | ||
assert np.issubdtype(t.dtype, np.floating) | ||
except IOError: |
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.
it might be best if use a try:...
suite whereever you perform io (and nowhere else) rather than just wrapping everything into a huge try:
clause. it's going to be a huge pain to track down which of these is throwing the io error down the line. as a rule try (no pun intended) keeping try:
clauses as small as possible so that disambiguating errors is easier. also no need to put any of the post io code in the try:...
suite since if you're there there wasn't a raise
closing in favor of #3914 |
@jreback while I understand that the decorator is a better approach, this pull request also split up tests into smaller functions, which make identifying errors easier ... I think this is a small value add regardless. |
I'm going to be home and able to check in about 30mins, do you mind waiting
|
In particular - the network and with connectivity decorators make it
|
also pls look at #3916, prob related |
Uh but you shouldn't merge my other PR. Have to make one edit like I said
|
no merging until positive confirmation from both of you (kind of like it takes 2 keys to blow up the world) |
The problem is that all of the
at the top. |
@jtratner Jeff, do you see this pull request working as is (without implementing your improvements)? |
@gliptak one of us will have to edit a pull request to make the final merge happen, haha. The only thing is that you have more domain experience with this module than I do, so it would be great if you could decide which tests should check connectivity ahead of time ( |
@jreback why don't you just merge this first and then I'll edit the other one. |
@gliptak thank you |
It's all good, ended up being a breeze to merge.
|
No description provided.