Skip to content
Prev Previous commit
Next Next commit
Skip excel parser test if xlrd not installed.
  • Loading branch information
takluyver committed Oct 6, 2011
commit fd3ea51b710a146092ab0f6e5e0c60e6fb87d1d6
5 changes: 5 additions & 0 deletions pandas/io/tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ def test_read_csv_no_index_name(self):
assert_frame_equal(df, df2)

def test_excel_table(self):
try:
import xlrd
except ImportError:
import nose
raise nose.SkipTest
pth = os.path.join(self.dirpath, 'test.xls')
xls = ExcelFile(pth)
df = xls.parse('Sheet1')
Expand Down