Skip to content

Commit

Permalink
Make check_output_test.py tolerate CRLF line endings in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jul 22, 2018
1 parent cc14df4 commit dcaf9b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/check_output_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ def check_output_test(deno_exe_filename):
expected_out = f.read()
cmd = [deno_exe_filename, script_abs]
print " ".join(cmd)
actual_out = subprocess.check_output(cmd)
actual_out = subprocess.check_output(cmd, universal_newlines=True)
if expected_out != actual_out:
print "Expected output does not match actual."
print "Expected: " + expected_out
print "Actual: " + actual_out
sys.exit(1)


Expand Down

0 comments on commit dcaf9b3

Please sign in to comment.