[pypy-commit] pypy win32-stdlib: close file opened in test

mattip noreply at buildbot.pypy.org
Wed Apr 11 11:19:18 CEST 2012


Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-stdlib
Changeset: r54282:ac977b768615
Date: 2012-04-11 12:17 +0300
http://bitbucket.org/pypy/pypy/changeset/ac977b768615/

Log:	close file opened in test

diff --git a/lib-python/2.7/test/test_os.py b/lib-python/modified-2.7/test/test_os.py
rename from lib-python/2.7/test/test_os.py
rename to lib-python/modified-2.7/test/test_os.py
--- a/lib-python/2.7/test/test_os.py
+++ b/lib-python/modified-2.7/test/test_os.py
@@ -74,7 +74,8 @@
         self.assertFalse(os.path.exists(name),
                     "file already exists for temporary file")
         # make sure we can create the file
-        open(name, "w")
+        fid = open(name, "w")
+        fid.close()
         self.files.append(name)
 
     def test_tempnam(self):


More information about the pypy-commit mailing list