@@ -254,20 +254,20 @@ def test_excel_read_buffer(self):
254
254
f = open (pth , 'rb' )
255
255
xl = ExcelFile (f )
256
256
xl .parse ('Sheet1' , index_col = 0 , parse_dates = True )
257
-
257
+
258
258
def test_read_xlrd_Book (self ):
259
259
_skip_if_no_xlrd ()
260
260
_skip_if_no_xlwt ()
261
-
261
+
262
262
import xlrd
263
-
263
+
264
264
pth = '__tmp_excel_read_worksheet__.xls'
265
265
df = self .frame
266
-
266
+
267
267
with ensure_clean (pth ) as pth :
268
268
df .to_excel (pth , "SheetA" )
269
269
book = xlrd .open_workbook (pth )
270
-
270
+
271
271
with ExcelFile (book , engine = "xlrd" ) as xl :
272
272
result = xl .parse ("SheetA" )
273
273
tm .assert_frame_equal (df , result )
@@ -1004,26 +1004,6 @@ def check_called(func):
1004
1004
check_called (lambda : df .to_excel ('something.xls' , engine = 'dummy' ))
1005
1005
set_option ('io.excel.xlsx.writer' , val )
1006
1006
1007
-
1008
- class ExcelLegacyTests (SharedItems , unittest .TestCase ):
1009
- def test_deprecated_from_parsers (self ):
1010
-
1011
- # since 0.12 changed the import path
1012
- import warnings
1013
-
1014
- with warnings .catch_warnings ():
1015
- warnings .filterwarnings (action = 'ignore' , category = FutureWarning )
1016
-
1017
- _skip_if_no_xlrd ()
1018
- from pandas .io .parsers import ExcelFile as xf
1019
- xf (self .xls1 )
1020
-
1021
- _skip_if_no_xlwt ()
1022
- with ensure_clean ('test.xls' ) as path :
1023
- from pandas .io .parsers import ExcelWriter as xw
1024
- xw (path )
1025
-
1026
-
1027
1007
if __name__ == '__main__' :
1028
1008
nose .runmodule (argv = [__file__ , '-vvs' , '-x' , '--pdb' , '--pdb-failure' ],
1029
1009
exit = False )
0 commit comments