We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916048d commit 18d15cbCopy full SHA for 18d15cb
Lib/test/test_httplib.py
@@ -588,6 +588,7 @@ def test_bytes_body(self):
588
self.assertEqual(b'body\xc1', f.read())
589
590
def test_file_body(self):
591
+ self.addCleanup(support.unlink, support.TESTFN)
592
with open(support.TESTFN, "w") as f:
593
f.write("body")
594
with open(support.TESTFN) as f:
@@ -599,6 +600,7 @@ def test_file_body(self):
599
600
self.assertEqual(b'body', f.read())
601
602
def test_binary_file_body(self):
603
604
with open(support.TESTFN, "wb") as f:
605
f.write(b"body\xc1")
606
with open(support.TESTFN, "rb") as f:
0 commit comments