[pypy-commit] pypy default: reduce diff with upstream
bdkearns
noreply at buildbot.pypy.org
Fri Apr 25 03:07:41 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r70954:ba11a9b9aab5
Date: 2014-04-24 21:03 -0400
http://bitbucket.org/pypy/pypy/changeset/ba11a9b9aab5/
Log: reduce diff with upstream
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
@@ -479,11 +479,10 @@
def _create_file(self):
if self.use_buffering:
- f = open(self.filename, "w+", buffering=1024*16)
+ self.f = open(self.filename, "w+", buffering=1024*16)
else:
- f = open(self.filename, "w+")
- self.f = f
- self.all_files.append(f)
+ self.f = open(self.filename, "w+")
+ self.all_files.append(self.f)
oldf = self.all_files.pop(0)
if oldf is not None:
oldf.close()
More information about the pypy-commit
mailing list