[pypy-commit] pypy default: close file after use

mattip noreply at buildbot.pypy.org
Sat Mar 29 20:54:38 CET 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r70328:c3a274d4f042
Date: 2014-03-29 21:05 +0300
http://bitbucket.org/pypy/pypy/changeset/c3a274d4f042/

Log:	close file after use

diff --git a/lib-python/2.7/test/test_httpservers.py b/lib-python/2.7/test/test_httpservers.py
--- a/lib-python/2.7/test/test_httpservers.py
+++ b/lib-python/2.7/test/test_httpservers.py
@@ -335,6 +335,7 @@
             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(


More information about the pypy-commit mailing list