Skip to content

Commit 7cc19c0

Browse files
author
y-p
committed
TST: speed up long test (Yahoo IO)
1 parent 8ce4ef9 commit 7cc19c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/io/tests/test_yahoo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ def test_get_data(self):
8585
ts = pan.Close.GOOG.index[pan.Close.AAPL > pan.Close.GOOG]
8686
assert ts[0].dayofyear == 96
8787

88-
dfi = web.get_components_yahoo('^DJI')
89-
pan = web.get_data_yahoo(dfi, 'JAN-01-12', 'JAN-31-12')
88+
#dfi = web.get_components_yahoo('^DJI')
89+
#pan = web.get_data_yahoo(dfi, 'JAN-01-12', 'JAN-31-12')
90+
pan = web.get_data_yahoo(['GE', 'MSFT', 'INTC'], 'JAN-01-12', 'JAN-31-12')
9091
expected = [19.02, 28.23, 25.39]
9192
result = pan.Close.ix['01-18-12'][['GE', 'MSFT', 'INTC']].tolist()
9293
assert result == expected

0 commit comments

Comments
 (0)