1
0
forked from Mirror/wren

More test runner fixes.

This commit is contained in:
Bob Nystrom
2015-07-19 10:31:55 -07:00
parent 71eda0e427
commit 6ece2c173b

View File

@ -150,7 +150,7 @@ class Test:
def validate_runtime_error(self, error_lines):
if not error_lines:
self.fail('Expected runtime error "{0} and got none.',
runtime_error_message)
self.runtime_error_message)
return
# Make sure we got the right error.
@ -234,7 +234,7 @@ def color_text(text, color):
# No ANSI escapes on Windows.
if sys.platform == 'win32':
return text
return str(text)
return color + str(text) + '\033[0m'