Skip to content

Don't catch name resolve errors in test_database_specify - #4925

Merged
eteq merged 1 commit into
astropy:masterfrom
eteq:stop-hiding-nr-errs
Jun 3, 2016
Merged

eteq merged 1 commit into
astropy:masterfrom
eteq:stop-hiding-nr-errs

Conversation

@eteq

@eteq eteq commented May 16, 2016

Copy link
Copy Markdown
Member

While investigating some of the remote-data errors (a la #4896), I noticed that test_database_specify is doing something weird - it catches NameResolveErrors and tries to replace them with a local/semi-local version. But the except clause doesn't do this correctly and ends up just issuing a different error that has no information about the true error. This PR corrects that by just not catching the error at all.

@adrn, can you shed some light on the original intent of this? Is it out-of-date code from before remote_data was a thing, maybe? If so, I think this is fine to remove.

@adrn

adrn commented May 17, 2016

Copy link
Copy Markdown
Member

I think this is out of date. I don't remember adding this (and can't figure out how to use blame to see if I actually did), so, sorry I can't be more help! Maybe @mdboom knows?

@eteq

eteq commented Jun 3, 2016

Copy link
Copy Markdown
Member Author

OK, in the name of making sure the tests aren't broken in 1.2 I'm going to just merge this to get all the remote data tests working... but if anyone has any idea what was original intent was, feel free to issue a PR restoring it!

@eteq
eteq merged commit 3db5252 into astropy:master Jun 3, 2016
@eteq
eteq deleted the stop-hiding-nr-errs branch June 3, 2016 05:59
eteq added a commit that referenced this pull request Jun 3, 2016
Don't catch name resolve errors in test_database_specify
@eteq

eteq commented Jun 3, 2016

Copy link
Copy Markdown
Member Author

backported to v1.2.x in dd56a14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants