We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 045b2e7 commit 726e5efCopy full SHA for 726e5ef
2 files changed
python/code/wypp/ansi.py
@@ -24,6 +24,8 @@
24
WHITE = "\u001b[1;37m"
25
26
def useColors():
27
+ if os.environ.get("WYPP_FORCE_COLORS") == "True":
28
+ return True
29
if "NO_COLOR" in os.environ:
30
return False
31
if not sys.stdout.isatty():
python/fileTestsLib.py
@@ -253,6 +253,7 @@ def _runTest(testFile: str,
253
env = os.environ.copy()
254
env['PYTHONPATH'] = os.pathsep.join([os.path.join(ctx.opts.baseDir, 'code')] + pythonPath)
255
env['WYPP_UNDER_TEST'] = 'True'
256
+ env['WYPP_FORCE_COLORS'] = 'True'
257
debug(' '.join(cmd))
258
with open(actualStdoutFile, 'w') as stdoutFile, \
259
open(actualStderrFile, 'w') as stderrFile:
0 commit comments