[issue4428] io.BufferedWriter does not observe buffer size limits
Gregory P. Smith
report at bugs.python.org
Sat Nov 29 01:54:30 CET 2008
Gregory P. Smith <greg at krypto.org> added the comment:
I've attached my first attempt at fixing this as io-bufwrite-gps01.
Unfortunately it causes the Lib/test/test_io.py testThreads to fail:
======================================================================
FAIL: testThreads (__main__.BufferedReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_io.py", line 456, in testThreads
self.assertEqual(s.count(c), N)
AssertionError: 30 != 1000
I haven't read the test yet, but my guess is that the test is broken and
is blindly calling write() without checking the return value.
----------
keywords: +patch
Added file: http://bugs.python.org/file12155/issue4428-io-bufwrite-gps01.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4428>
_______________________________________
More information about the Python-bugs-list
mailing list