[Twisted-Python] comments about twisted.trial.unittest

Chris Liechti cliechti at gmx.net
Wed Jun 11 16:27:59 EDT 2003

Glyph Lefkowitz wrote:
> On Wednesday, June 11, 2003, at 01:56 PM, Jonathan M. Lange wrote:
>> trial -v (Black-n-white verbose output)
>> trial --color -v (Colorful verbose output)

yes, looks nice for me.

> Perhaps color should only be used if sys.stdout.isatty()?

but unfortunately:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.stdout.isatty()

isatty() may rule out captured output in an IDE, but it does not help 
for the stupid windows console window.


More information about the Twisted-Python mailing list