File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1070,12 +1070,15 @@ def test_ExcelWriter_dispatch(self):
10701070 except ImportError :
10711071 _skip_if_no_openpyxl ()
10721072 writer_klass = _OpenpyxlWriter
1073- writer = ExcelWriter ('apple.xlsx' )
1074- tm .assert_isinstance (writer , writer_klass )
1073+
1074+ with ensure_clean ('.xlsx' ) as path :
1075+ writer = ExcelWriter (path )
1076+ tm .assert_isinstance (writer , writer_klass )
10751077
10761078 _skip_if_no_xlwt ()
1077- writer = ExcelWriter ('apple.xls' )
1078- tm .assert_isinstance (writer , _XlwtWriter )
1079+ with ensure_clean ('.xls' ) as path :
1080+ writer = ExcelWriter (path )
1081+ tm .assert_isinstance (writer , _XlwtWriter )
10791082
10801083 def test_register_writer (self ):
10811084 # some awkward mocking to test out dispatch and such actually works
You can’t perform that action at this time.
0 commit comments