def test_deprecated_from_parsers(self): # since 0.12 changed the import path import warnings with warnings.catch_warnings() as w: warnings.filterwarnings(action='ignore', category=FutureWarning) _skip_if_no_xlrd() from pandas.io.parsers import ExcelFile as xf xf(self.xls1) _skip_if_no_xlwt() with ensure_clean('test.xls') as path: from pandas.io.parsers import ExcelWriter as xw xw(path)
def test_deprecated_from_parsers(self): # since 0.12 changed the import path import warnings with warnings.catch_warnings(): warnings.filterwarnings(action='ignore', category=FutureWarning) _skip_if_no_xlrd() from pandas.io.parsers import ExcelFile as xf xf(self.xls1) _skip_if_no_xlwt() with ensure_clean('test.xls') as path: from pandas.io.parsers import ExcelWriter as xw xw(path)