[issue7865] io close() swallowing exceptions
Pascal Chambon
report at bugs.python.org
Wed Apr 28 19:23:22 CEST 2010
Pascal Chambon <chambon.pascal at gmail.com> added the comment:
>Probably an oversight. Do you want to add some tests?
That's WIP
> Because it's not an IO error at all. No I/O occurs. You are just using
the file wrongly (or the wrong file), hence the ValueError.
Then when you try to wrap a non-readable stream into a readable buffered stream (like BufferedRWPair), it should raise a value error as well, but currently it's rather:
"""if not reader.readable(): raise IOError('"reader" argument must be readable.')"""
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7865>
_______________________________________
More information about the Python-bugs-list
mailing list