[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 417d7f8117cf40378901876d0e7b324f3f694a18
Author: Beck Chen <csybeck@xxxxxxxxx>
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:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits