Skip to content

Commit 18d15cb

Browse files
author
Victor Stinner
committed
test_httplib removes temporary files
1 parent 916048d commit 18d15cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_httplib.py

+2
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ def test_bytes_body(self):
588588
self.assertEqual(b'body\xc1', f.read())
589589

590590
def test_file_body(self):
591+
self.addCleanup(support.unlink, support.TESTFN)
591592
with open(support.TESTFN, "w") as f:
592593
f.write("body")
593594
with open(support.TESTFN) as f:
@@ -599,6 +600,7 @@ def test_file_body(self):
599600
self.assertEqual(b'body', f.read())
600601

601602
def test_binary_file_body(self):
603+
self.addCleanup(support.unlink, support.TESTFN)
602604
with open(support.TESTFN, "wb") as f:
603605
f.write(b"body\xc1")
604606
with open(support.TESTFN, "rb") as f:

0 commit comments

Comments
 (0)