why the flush?

Martin Pool mbp at sourcefrog.net
Thu Mar 22 08:05:42 GMT 2007


On 3/22/07, Robert Collins <robertc at robertcollins.net> wrote:
> In bzrlib.tests.VerboseTestResult, I dont understand why report_success
> feels the need to do a stream flush?

Because stdout is not necessarily line buffered, and it's nice to see
the results as they happen.  This is for cases like selftest run by an
editor with output to a tempfile or a pipe.

It might be better to just set the stream to linebuffered...

-- 
Martin



More information about the bazaar mailing list