Commit 3082a66f authored by Benjamin Peterson's avatar Benjamin Peterson

explicitly close file object (#21128)

parent eaea5e50
......@@ -335,6 +335,7 @@ class SimpleHTTPServerTestCase(BaseTestCase):
response = self.request(self.tempdir_name + '/')
self.check_status_and_reason(response, 404)
os.chmod(self.tempdir, 0755)
f.close()
def test_head(self):
response = self.request(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment