From: Benjamin Peterson Date: Fri, 4 Apr 2014 17:56:44 +0000 (-0400) Subject: explicitly close file object (#21128) X-Git-Tag: v2.7.7rc1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2dafe60bc75b0168236fe1d55e39daee0fa9cd7;p=thirdparty%2FPython%2Fcpython.git explicitly close file object (#21128) --- diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 359694a4815d..88e2e854a52d 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -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(