From ca8d8f37f9c5ab397fcba56d7f2356a2e18d6377 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 2 Apr 2017 05:06:36 +0000 Subject: [PATCH] BF: skip two tests which failed when xlwt was N/A Gbp-Pq: Name changeset_233b28f02ec0c88a955e6a26cc43c0a88929536c.diff --- pandas/io/tests/test_excel.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandas/io/tests/test_excel.py b/pandas/io/tests/test_excel.py index 056b7a53..cf40464e 100644 --- a/pandas/io/tests/test_excel.py +++ b/pandas/io/tests/test_excel.py @@ -417,6 +417,9 @@ class ReadingTestsBase(SharedItems): # GH 12292 : error when read one empty column from excel file def test_read_one_empty_col_no_header(self): + _skip_if_no_xlwt() + _skip_if_no_openpyxl() + df = pd.DataFrame( [["", 1, 100], ["", 2, 200], @@ -475,6 +478,9 @@ class ReadingTestsBase(SharedItems): def test_set_column_names_in_parameter(self): # GH 12870 : pass down column names associated with # keyword argument names + _skip_if_no_xlwt() + _skip_if_no_openpyxl() + refdf = pd.DataFrame([[1, 'foo'], [2, 'bar'], [3, 'baz']], columns=['a', 'b']) -- 2.30.2