Author: Armin Rigo <ar...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit