Skip to content

Commit 06e4342

Browse files
committed
TST: unit test for #2445
1 parent 1f2b346 commit 06e4342

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pandas/io/tests/test_excel.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,20 @@ def test_to_excel_header_styling_xlsx(self):
788788

789789
os.remove(filename)
790790

791+
@slow
792+
def test_to_excel_large_files(self):
793+
_skip_if_no_excelsuite()
794+
df = DataFrame([tuple([i for i in range(200)])
795+
for i in range(100)],
796+
columns=["%s" % i for i in range(200)])
797+
path = '__%s__.xls' % tm.rands(10)
798+
df.to_excel(path)
799+
800+
try:
801+
os.remove(path)
802+
except os.error:
803+
pass
804+
791805

792806
if __name__ == '__main__':
793807
nose.runmodule(argv=[__file__,'-vvs','-x','--pdb', '--pdb-failure'],

0 commit comments

Comments
 (0)