[tor-commits] [stem/master] Disable ANSI escape sequences in windows

atagar at torproject.org atagar at torproject.org
Thu Jun 21 15:45:57 UTC 2012


commit 417d7f8117cf40378901876d0e7b324f3f694a18
Author: Beck Chen <csybeck at gmail.com>
Date:   Wed Jun 13 01:17:10 2012 +0800

    Disable ANSI escape sequences in windows
---
 run_tests.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/run_tests.py b/run_tests.py
old mode 100755
new mode 100644
index 5c41f40..780d357
--- a/run_tests.py
+++ b/run_tests.py
@@ -11,6 +11,7 @@ import getopt
 import unittest
 import threading
 import StringIO
+import platform
 
 import test.output
 import test.runner
@@ -145,7 +146,7 @@ def load_user_configuration(test_config):
     sys.exit(1)
   
   # suppress color output if our output is being piped
-  if not sys.stdout.isatty():
+  if (not sys.stdout.isatty()) or (platform.system() == "Windows"):
     arg_overrides["argument.no_color"] = "true"
   
   for opt, arg in opts:





More information about the tor-commits mailing list