[issue7640] buffered io seek() buggy

Pascal Chambon report at bugs.python.org
Wed Jan 6 15:23:18 CET 2010


Pascal Chambon <chambon.pascal at gmail.com> added the comment:

Well, here is a patch for the seek() methods of io module, in python2.6 maintenance branch.
Finally, I've only backported some assertions and the offset stuffs - I'm not comfortable enough about recent io refactorings to do more (it changed pretty quickly while I looked away, actually :p).
Tests have been patched too (bufferedrandom wasn't tested as other buffer classes), and to have the whole suite pass, I had to modify testWriteNonBlocking() as well (mock objects returned wrong values - this test is marked as unreliable in sources anyway).
If more is needed to patch the py2.6 branch, just tell me B-)

----------
keywords: +patch
Added file: http://bugs.python.org/file15759/seek_cur_buffers_py26.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7640>
_______________________________________


More information about the Python-bugs-list mailing list