Skip to content

TST: fix testing for yahoo get_data_null_as_missing comparisons #367

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 2 commits into from
Jul 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ matrix:
- PYTHON=3.6 PANDAS=0.19.2
- dist: trusty
env:
- PYTHON=3.6 PANDAS=LATEST
- PYTHON=3.6 PANDAS=0.20.2
# In allow failures
- dist: trusty
env:
Expand Down Expand Up @@ -57,8 +57,6 @@ install:
conda install numpy pytz python-dateutil;
PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com";
pip install --pre --upgrade --timeout=60 -f $PRE_WHEELS pandas;
elif [[ "$PANDAS" == "LATEST" ]]; then
conda install pandas
else
conda install pandas=$PANDAS;
fi
Expand Down
8 changes: 7 additions & 1 deletion pandas_datareader/tests/yahoo/test_yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ def test_get_data_null_as_missing_data(self, adj_pr):
result = web.get_data_yahoo('SRCE', '20160626', '20160705',
adjust_price=adj_pr)
# sanity checking
assert result.dtypes.all() == np.floating
floats = ['Open', 'High', 'Low', 'Close']
if adj_pr:
floats.append('Adj_Ratio')
else:
floats.append('Adj Close')

assert result[floats].dtypes.all() == np.floating

@skip_on_exception(RemoteDataError)
def test_get_data_multiple_symbols_two_dates(self):
Expand Down