Skip to content

Commit

Permalink
TST: fix testing for yahoo get_data_null_as_missing comparisons (#367)
Browse files Browse the repository at this point in the history
* TST: fix testing for yahoo get_data_null_as_missing comparisons

xref #357

* Revert "CI: use latest pandas"

This reverts commit 3b8b11a.
  • Loading branch information
jreback authored Jul 10, 2017
1 parent 3b8b11a commit a582b2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
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

0 comments on commit a582b2b

Please sign in to comment.