[issue7865] io close() swallowing exceptions
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?
> 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>
More information about the Python-bugs-list