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):
1070
1070
except ImportError :
1071
1071
_skip_if_no_openpyxl ()
1072
1072
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 )
1075
1077
1076
1078
_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 )
1079
1082
1080
1083
def test_register_writer (self ):
1081
1084
# some awkward mocking to test out dispatch and such actually works
You can’t perform that action at this time.
0 commit comments