From 3e8e04e3d6965f73f85dcf0fab7da82a43da689b Mon Sep 17 00:00:00 2001 From: Vitaly Slobodin Date: Sat, 23 Jan 2016 12:36:58 +0300 Subject: [PATCH] [Windows] Disable color output detection --- test/run-tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/run-tests.py b/test/run-tests.py index 3b50a4775..060d53f03 100755 --- a/test/run-tests.py +++ b/test/run-tests.py @@ -6,6 +6,7 @@ import errno import glob import imp import os +import platform import posixpath import re import shlex @@ -79,7 +80,7 @@ def activate_colorization(options): elif options.color == "never": _COLORS = _COLOR_NONE else: - if sys.stdout.isatty(): + if sys.stdout.isatty() and platform.system() != "Windows": try: n = int(subprocess.check_output(["tput", "colors"])) if n >= 8: