summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httpservers.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-04 17:56:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-04 17:56:44 (GMT)
commitc2dafe60bc75b0168236fe1d55e39daee0fa9cd7 (patch)
tree1d4b3cc16294dd2f019cd0bae71bab3e695632ef /Lib/test/test_httpservers.py
parent7b26a5a32d1c0889a98fc8d487d92f5b822aa428 (diff)
downloadcpython-c2dafe60bc75b0168236fe1d55e39daee0fa9cd7.zip
cpython-c2dafe60bc75b0168236fe1d55e39daee0fa9cd7.tar.gz
cpython-c2dafe60bc75b0168236fe1d55e39daee0fa9cd7.tar.bz2
explicitly close file object (#21128)
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r--Lib/test/test_httpservers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 359694a..88e2e85 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(