This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients beazley, gregory.p.smith
Date 2008-11-29.00:54:28
SpamBayes Score 6.4962404e-07
Marked as misclassified No
Message-id <1227920070.15.0.911423104187.issue4428@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-11-29 00:54:30gregory.p.smithsetrecipients: + gregory.p.smith, beazley
2008-11-29 00:54:30gregory.p.smithsetmessageid: <1227920070.15.0.911423104187.issue4428@psf.upfronthosting.co.za>
2008-11-29 00:54:28gregory.p.smithlinkissue4428 messages
2008-11-29 00:54:28gregory.p.smithcreate