From d1b48a7213657e697d7c9306e42d066dd9e0b39e Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sat, 14 Mar 2015 09:49:55 -0700 Subject: [PATCH] Ugh, fix test script. --- script/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/test.py b/script/test.py index 27156817..1ec58294 100755 --- a/script/test.py +++ b/script/test.py @@ -152,14 +152,14 @@ def run_test(path): proc = Popen([WREN_APP, path], stdin=PIPE, stdout=PIPE, stderr=PIPE) (out, err) = proc.communicate(input_bytes) + fails = [] + try: out = out.decode("utf-8").replace('\r\n', '\n') err = err.decode("utf-8").replace('\r\n', '\n') except: fails.append('Error decoding output.') - fails = [] - # Validate that no unexpected errors occurred. if expect_return != 0 and err != '': lines = err.split('\n')