##// END OF EJS Templates
run-tests: disable color on Windows...
Matt Harbison -
r33500:9c6e6491 default
parent child Browse files
Show More
@@ -89,13 +89,16 b" osenvironb = getattr(os, 'environb', os."
89 processlock = threading.Lock()
89 processlock = threading.Lock()
90
90
91 with_color = False
91 with_color = False
92 try: # is pygments installed
92
93 import pygments
93 # ANSI color is unsupported prior to Windows 10
94 import pygments.lexers as lexers
94 if os.name != 'nt':
95 import pygments.formatters as formatters
95 try: # is pygments installed
96 with_color = True
96 import pygments
97 except ImportError:
97 import pygments.lexers as lexers
98 pass
98 import pygments.formatters as formatters
99 with_color = True
100 except ImportError:
101 pass
99
102
100 if not sys.stderr.isatty(): # check if the terminal is capable
103 if not sys.stderr.isatty(): # check if the terminal is capable
101 with_color = False
104 with_color = False
@@ -121,6 +121,7 b' test churn with globs'
121
121
122 test diff colorisation
122 test diff colorisation
123
123
124 #if no-windows
124 $ rt test-failure.t --color always
125 $ rt test-failure.t --color always
125
126
126 \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc)
127 \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc)
@@ -155,6 +156,7 b' test diff colorisation'
155 Failed test-failure.t: output changed
156 Failed test-failure.t: output changed
156 # Ran 1 tests, 0 skipped, 1 failed.
157 # Ran 1 tests, 0 skipped, 1 failed.
157 python hash seed: * (glob)
158 python hash seed: * (glob)
159 #endif
158
160
159 basic failing test
161 basic failing test
160 $ cat > test-failure.t << EOF
162 $ cat > test-failure.t << EOF
General Comments 0
You need to be logged in to leave comments. Login now