Skip to content

Commit 2cd903d

Browse files
committed
test_htmlreport.py: use tempfile.TemporaryDirectory instead of tempfile.mkdtemp() for automatic cleanup
1 parent ace8834 commit 2cd903d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/tools/htmlreport/test_htmlreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def runCheck(source_filename=None, xml_version='1', xml_filename=None):
8484
path.
8585
8686
"""
87-
output_directory = tempfile.mkdtemp(dir='.')
87+
output_directory = tempfile.TemporaryDirectory(dir='.')
8888
if xml_filename is None:
8989
assert source_filename
9090
xml_filename = os.path.join(output_directory, 'output.xml')

0 commit comments

Comments
 (0)