Skip to content

TST: Changed the error raised by no tables in data.Options #7392

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
Jun 8, 2014

Conversation

davidastephens
Copy link
Contributor

Tests were failing if the scraper got the webpage but there weren't any tables in it. Added condition to raise RemoteDataError if no tables were found. Still IndexError if it can't find the correct table.

fixes #7335

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2014

Is it ever the case that there are more than 0 tables found but a table location is invalid?

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2014

If 2 tables are found, and you wanted location 3

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2014

Not really a RemoteDataError in that case though. Can you put a conditional that will only raise a RemoteDataError if 0 tables are found

@davidastephens
Copy link
Contributor Author

Good point. I was trying to think of how to make fail in the case that Yahoo changes their tables around.

Tests were failing if the scraper got the webpage but there weren't any tables in it. Added condition to raise RemoteDataError if no tables were found.  Still IndexError if it can't find the correct table.
@cpcloud
Copy link
Member

cpcloud commented Jun 8, 2014

@jreback comments? i think this is ok

@cpcloud cpcloud added this to the 0.14.1 milestone Jun 8, 2014
@jreback
Copy link
Contributor

jreback commented Jun 8, 2014

ok

cpcloud added a commit that referenced this pull request Jun 8, 2014
TST: Changed the error raised by no tables in data.Options
@cpcloud cpcloud merged commit 2633722 into pandas-dev:master Jun 8, 2014
@cpcloud
Copy link
Member

cpcloud commented Jun 8, 2014

@dstephens99 thanks!

@cpcloud cpcloud modified the milestone: 0.14.1 Jun 8, 2014
@davidastephens davidastephens deleted the OptionTests branch June 8, 2014 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Network Local or Cloud (AWS, GCS, etc.) IO Issues Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: option retrieval failures
3 participants