From fabd967595af9808947eedf4c7e3ef9b63391b61 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sun, 18 Oct 2009 22:30:18 +0200 Subject: [PATCH] flush looponfail output to get around line-buffering --HG-- branch : trunk --- _py/test/looponfail/remote.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_py/test/looponfail/remote.py b/_py/test/looponfail/remote.py index 7374e334c..bc281f94d 100644 --- a/_py/test/looponfail/remote.py +++ b/_py/test/looponfail/remote.py @@ -79,7 +79,10 @@ class RemoteControl(object): slave_runsession(channel, config, fullwidth, hasmarkup) """) remote_outchannel = channel.receive() - remote_outchannel.setcallback(out._file.write) + def write(s): + out._file.write(s) + out._file.flush() + remote_outchannel.setcallback(write) channel = self.channel = PickleChannel(channel) channel.send((self.config, out.fullwidth, out.hasmarkup)) self.trace("set up of slave session complete")