[tests] minor

This commit is contained in:
Ebrahim Byagowi 2020-07-27 09:19:29 +04:30 committed by GitHub
parent 322426f8c8
commit d38d63319b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ def run_test (test, should_check_ots):
font.saveXML (expected_ttx) font.saveXML (expected_ttx)
except Exception as e: except Exception as e:
print (e) print (e)
return fail_test (test, cli_args, "ttx (expected) returned %d" % (return_code)) return fail_test (test, cli_args, "ttx failed to parse the expected result")
actual_ttx = io.StringIO () actual_ttx = io.StringIO ()
try: try:
@ -70,7 +70,7 @@ def run_test (test, should_check_ots):
font.saveXML (actual_ttx) font.saveXML (actual_ttx)
except Exception as e: except Exception as e:
print (e) print (e)
return fail_test (test, cli_args, "ttx (actual) returned %d" % (return_code)) return fail_test (test, cli_args, "ttx failed to parse the actual result")
expected_ttx_text = strip_check_sum (expected_ttx.getvalue ()) expected_ttx_text = strip_check_sum (expected_ttx.getvalue ())
expected_ttx.close () expected_ttx.close ()