diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-21 01:09:29 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-21 01:09:29 +0200 |
commit | c61fae04f699a5859afa814954e3823247cb25eb (patch) | |
tree | 3bb8a88aca706c80c89ac4251d5928a84d3c7c53 /Lib/test/test_httplib.py | |
parent | 8ed6fa1c0ba2a6fdf6de38b1e60c71e28e4d4699 (diff) | |
parent | 18d15cb665f8e446b79a0043eac7eee0904b4d10 (diff) | |
download | cpython-git-c61fae04f699a5859afa814954e3823247cb25eb.tar.gz |
Merge 3.2: test_httplib removes temporary files
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 066a6b7e92..17297430c3 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -588,6 +588,7 @@ class RequestBodyTest(TestCase): self.assertEqual(b'body\xc1', f.read()) def test_file_body(self): + self.addCleanup(support.unlink, support.TESTFN) with open(support.TESTFN, "w") as f: f.write("body") with open(support.TESTFN) as f: @@ -599,6 +600,7 @@ class RequestBodyTest(TestCase): self.assertEqual(b'body', f.read()) def test_binary_file_body(self): + self.addCleanup(support.unlink, support.TESTFN) with open(support.TESTFN, "wb") as f: f.write(b"body\xc1") with open(support.TESTFN, "rb") as f: |