Skip to content

Commit 0730cd0

Browse files
committed
TST: Always define fd in util/testing
1 parent 4d5ca5c commit 0730cd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/util/testing.py

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def ensure_clean(filename=None, return_filelike=False):
339339
savefig and other functions which want to append extensions.
340340
"""
341341
filename = filename or ''
342+
fd = None
342343

343344
if return_filelike:
344345
f = tempfile.TemporaryFile(suffix=filename)

0 commit comments

Comments
 (0)