Author: Matti Picus <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit