Skip to content
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

TST: nose.SkipTest on RemoteDataErrors in tests for io.data.Options #7034

Merged
merged 1 commit into from
May 5, 2014

Conversation

davidastephens
Copy link
Contributor

Prevents tests from failing if data isn't able to be downloaded from Yahoo Finance.

@@ -252,8 +252,8 @@ def tearDownClass(cls):
def test_get_options_data(self):
try:
calls, puts = self.aapl.get_options_data(expiry=self.expiry)
except IndexError:
warnings.warn("IndexError thrown no tables found")
except RemoteDataError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just print the actual error in the skip too, e.g.

except RemoteDataError as e:
    nose.SkipTest(e)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, thats better. Fixed that.

@jreback jreback added the Testing label May 4, 2014
@jreback jreback modified the milestones: 0.14.1, 0.14.0 May 4, 2014
@jreback
Copy link
Contributor

jreback commented May 5, 2014

looks good.pls squash down and add a release note (ref this PR), just so we can keep track of this

@davidastephens
Copy link
Contributor Author

Squashed and added a release note.

@@ -424,6 +424,7 @@ Bug Fixes
- Bug in ``DataFrame.apply`` with functions that used *args or **kwargs and returned
an empty result (:issue:`6952`)
- Bug in sum/mean on 32-bit platforms on overflows (:issue:`6915`)
- Stopped tests from failing if options data isn't able to be downloaded from Yahoo (PR: #7034)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this: (:issue:7034) ; same format as an issue

@jreback
Copy link
Contributor

jreback commented May 5, 2014

make that small change and rebase; ping when green

Added to release notes

Added to release notes

Fixed warning tests for RemoteDataError

TST: nose.Skiptest on RemoteDataErrors in tests for io.data.Options

Added to release notes

Conflicts:
	doc/source/release.rst
jreback added a commit that referenced this pull request May 5, 2014
TST: nose.SkipTest on RemoteDataErrors in tests for io.data.Options
@jreback jreback merged commit b5ede83 into pandas-dev:master May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants