[pypy-commit] pypy default: close open file before opening again
mattip
noreply at buildbot.pypy.org
Thu Apr 3 20:43:26 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r70422:fab45f2df6b6
Date: 2014-04-03 20:58 +0300
http://bitbucket.org/pypy/pypy/changeset/fab45f2df6b6/
Log: close open file before opening again
diff --git a/lib-python/2.7/test/test_file2k.py b/lib-python/2.7/test/test_file2k.py
--- a/lib-python/2.7/test/test_file2k.py
+++ b/lib-python/2.7/test/test_file2k.py
@@ -162,6 +162,7 @@
# Remark: Do not perform more than one test per open file,
# since that does NOT catch the readline error on Windows.
data = 'xxx'
+ self.f.close()
for mode in ['w', 'wb', 'a', 'ab']:
for attr in ['read', 'readline', 'readlines']:
self.f = open(TESTFN, mode)
More information about the pypy-commit
mailing list