Message232989
Some of the docstrings already mention UnsupportedOperation. This patch updates the rest of the documentation. Also adds some tests to verify this on all the concrete classes I could think of. Some discoveries in the process:
* BufferedWriter.readable() and BufferedReader.writable() could return True depending on the underlying raw stream. Fixed to always return False.
* Removed a branch in a test case that assumed BufferedReader.close() did not call flush(), but never activated due to the above writable() bug
* seek(), tell() and truncate() do not raise UnsupportedOperation, despite seekable() == False, at least for a pipe. Adjusted doc strings. |
|
Date |
User |
Action |
Args |
2014-12-21 05:34:24 | martin.panter | set | recipients:
+ martin.panter, viraptor |
2014-12-21 05:34:24 | martin.panter | set | messageid: <1419140064.02.0.706445505076.issue22854@psf.upfronthosting.co.za> |
2014-12-21 05:34:23 | martin.panter | link | issue22854 messages |
2014-12-21 05:34:23 | martin.panter | create | |
|