cmark

My personal build of CMark ✏️

Commit
0ac1d6a242c3bb5a43a8131c9fe8c00c977fe5ca
Parent
e6acb7e7a43ac64d83c410b9f83c13743b934d6f
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed small bug in test runner.

(Error printing errors from the test program.)

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified test/spec_tests.py 2 1 1
diff --git 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):