[pypy-commit] pypy default: Duplicate 9a1683dd96e2 here
arigo
noreply at buildbot.pypy.org
Sun Jun 21 14:32:52 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r78230:9f36a6b3d844
Date: 2015-06-21 14:33 +0200
http://bitbucket.org/pypy/pypy/changeset/9f36a6b3d844/
Log: Duplicate 9a1683dd96e2 here
diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -605,6 +605,10 @@
def read_w(self, space, w_size=None):
self._check_attached(space)
if not self.w_decoder:
+ # very unsure about the following check, but some tests seem
+ # to expect a ValueError instead of an IOError in case the
+ # file was already closed.
+ self._check_closed(space)
raise OperationError(space.w_IOError, space.wrap("not readable"))
size = convert_size(space, w_size)
More information about the pypy-commit
mailing list