Skip to content

Commit

Permalink
ASV: excel asv occasional failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Feb 21, 2018
1 parent feec5c1 commit 6198af6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions asv_bench/benchmarks/io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ def setup(self, engine):
self.writer_read.save()
self.bio_read.seek(0)

self.bio_write = BytesIO()
self.bio_write.seek(0)
self.writer_write = ExcelWriter(self.bio_write, engine=engine)

def time_read_excel(self, engine):
read_excel(self.bio_read)

def time_write_excel(self, engine):
self.df.to_excel(self.writer_write, sheet_name='Sheet1')
self.writer_write.save()
bio_write = BytesIO()
bio_write.seek(0)
writer_write = ExcelWriter(bio_write, engine=engine)
self.df.to_excel(writer_write, sheet_name='Sheet1')
writer_write.save()

0 comments on commit 6198af6

Please sign in to comment.