New submission from Caitlin Potter:

In migrating from GNU autoconf/automake build systems to a python-based build 
system (Waf), I've been slightly annoyed that coloured text output from unit 
test programs is lost on the windows platform (the gtest framework uses 
::SetConsoleTextAttribute on windows)

Ideally, the coloured output from the test sets would be preserved so that 
problems could be easily identified and stand out (See attached image for 
demonstration of problem)

This might be scoffed at as a minor problem because nobody uses 
SetConsoleTextAttribute anyways, and even if they do it would only affect the 
windows platform. But just the same, preserving coloured output on windows 
should be doable.

I'd be happy to work on a patch for this myself, but I'm new to the python tree 
and am not completely sure where to find what I'm looking for. I think an if 
mswindows: clause wherever stdout.read() is would probably work, but I'm not 
sure where that would be.

----------
components: IO, Windows
files: unit-tests.png
messages: 186168
nosy: Caitlin.Potter
priority: normal
severity: normal
status: open
title: subprocess.communicate() should preserve colored output on Windows
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file29699/unit-tests.png

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17647>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to