BF: skip two tests which failed when xlwt was N/A
authorYaroslav Halchenko <debian@onerussian.com>
Thu, 12 Jan 2017 18:10:11 +0000 (18:10 +0000)
committerYaroslav Halchenko <debian@onerussian.com>
Thu, 12 Jan 2017 18:10:11 +0000 (18:10 +0000)
Gbp-Pq: Name changeset_233b28f02ec0c88a955e6a26cc43c0a88929536c.diff

pandas/io/tests/test_excel.py

index 056b7a5322e262480bf54fc8ed27f93a81766881..cf40464ee91d498515e7e0ed9d17a4688d604048 100644 (file)
@@ -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'])