summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-09 12:38:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-09 12:55:41 -0700
commit0ac1d6a242c3bb5a43a8131c9fe8c00c977fe5ca (patch)
treeea29f99550f62c6fb1a75c780f8cc213db239e48 /test
parente6acb7e7a43ac64d83c410b9f83c13743b934d6f (diff)
Fixed small bug in test runner.
(Error printing errors from the test program.)
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 182368b..c6950fb 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -71,7 +71,7 @@ def do_test(test, normalize, result_counts):
else:
print_test_header(test['section'], test['example'], test['start_line'], test['end_line'])
out("program returned error code %d\n" % retcode)
- out(err + '\n')
+ sys.stdout.buffer.write(err)
result_counts['error'] += 1
def get_tests(specfile):