Revision: 3997
Author: pekka.klarck
Date: Mon Aug 30 10:13:31 2010
Log: use sys.__stdout__ instead of sys.stdout to make sure outputs are written to console even if output capture is broken somehow
http://code.google.com/p/robotframework/source/detail?r=3997

Modified:
 /trunk/src/robot/output/monitor.py

=======================================
--- /trunk/src/robot/output/monitor.py  Mon Aug 30 10:08:16 2010
+++ /trunk/src/robot/output/monitor.py  Mon Aug 30 10:13:31 2010
@@ -68,7 +68,7 @@
message = '[ %s ] %s' % (self._highlight(msg.level), msg.message)
             self._write(message, stream=sys.__stderr__)

-    def _write(self, message, newline=True, stream=sys.stdout):
+    def _write(self, message, newline=True, stream=sys.__stdout__):
         if newline:
             message += '\n'
         stream.write(utils.encode_output(message).replace('\t', ' '*8))

Reply via email to