tests/run-tests.py
changeset 33500 9c6e64911de0
parent 33420 e80041832eec
child 33552 754569f5e999
--- a/tests/run-tests.py	Fri Jul 14 14:22:40 2017 -0700
+++ b/tests/run-tests.py	Sat Jul 15 00:52:36 2017 -0400
@@ -89,13 +89,16 @@
 processlock = threading.Lock()
 
 with_color = False
-try: # is pygments installed
-    import pygments
-    import pygments.lexers as lexers
-    import pygments.formatters as formatters
-    with_color = True
-except ImportError:
-    pass
+
+# ANSI color is unsupported prior to Windows 10
+if os.name != 'nt':
+    try: # is pygments installed
+        import pygments
+        import pygments.lexers as lexers
+        import pygments.formatters as formatters
+        with_color = True
+    except ImportError:
+        pass
 
 if not sys.stderr.isatty(): # check if the terminal is capable
     with_color = False