-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: nose.SkipTest on RemoteDataErrors in tests for io.data.Options #7034
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
Conversation
@@ -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: |
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.
maybe just print the actual error in the skip too, e.g.
except RemoteDataError as e:
nose.SkipTest(e)
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.
Ya, thats better. Fixed that.
looks good.pls squash down and add a release note (ref this PR), just so we can keep track of this |
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) |
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.
make this: (:issue:
7034)
; same format as an issue
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
TST: nose.SkipTest on RemoteDataErrors in tests for io.data.Options
Prevents tests from failing if data isn't able to be downloaded from Yahoo Finance.