Skip to content

TST: yahoo retrieve tests failure #7648

Closed
@jreback

Description

@jreback

cc @dstephens99

prob just need to protect these a bit

here as well: https://travis-ci.org/jreback/pandas/jobs/28958102

======================================================================
ERROR: test_get_all_data (pandas.io.tests.test_data.TestYahooOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\util\testing.py", line 1337, in wrapper
    return t(*args, **kwargs)
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\io\tests\test_data.py", line 307, in test_get_all_data
    data = self.aapl.get_all_data(put=True)
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\io\data.py", line 1095, in get_all_data
    months = self._get_expiry_months()
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\io\data.py", line 1130, in _get_expiry_months
    links = root.xpath('.//*[@id="yfncsumtab"]')[0].xpath('.//a')
IndexError: list index out of range

----------------------------------------------------------------------
Ran 6897 tests in 353.413s

FAILED (SKIP=315, errors=1)

C:\Users\Jeff Reback\Documents\GitHub\pandas>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions