Skip to content

Commit 726e5ef

Browse files
committed
fix tests
1 parent 045b2e7 commit 726e5ef

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

python/code/wypp/ansi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
WHITE = "\u001b[1;37m"
2525

2626
def useColors():
27+
if os.environ.get("WYPP_FORCE_COLORS") == "True":
28+
return True
2729
if "NO_COLOR" in os.environ:
2830
return False
2931
if not sys.stdout.isatty():

python/fileTestsLib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def _runTest(testFile: str,
253253
env = os.environ.copy()
254254
env['PYTHONPATH'] = os.pathsep.join([os.path.join(ctx.opts.baseDir, 'code')] + pythonPath)
255255
env['WYPP_UNDER_TEST'] = 'True'
256+
env['WYPP_FORCE_COLORS'] = 'True'
256257
debug(' '.join(cmd))
257258
with open(actualStdoutFile, 'w') as stdoutFile, \
258259
open(actualStderrFile, 'w') as stderrFile:

0 commit comments

Comments
 (0)