[telepathy-gabble/telepathy-gabble-0.8] allow forcing test output colouring

Dafydd Harries dafydd.harries at collabora.co.uk
Mon Sep 21 06:57:20 PDT 2009


---
 tests/twisted/gabbletest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 4f0967e..09c7617 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -351,7 +351,7 @@ def exec_test_deferred(fun, params, protocol=None, timeout=None,
     domish.Element.__repr__ = domish.Element.toXml
     colourer = None
 
-    if sys.stdout.isatty():
+    if sys.stdout.isatty() or 'CHECK_FORCE_COLOR' in os.environ:
         colourer = servicetest.install_colourer()
 
     queue = servicetest.IteratingEventQueue(timeout)
-- 
1.5.6.5




More information about the telepathy-commits mailing list