mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
Make check_output_test.py tolerate CRLF line endings in test output
This commit is contained in:
parent
cc14df427f
commit
dcaf9b3227
1 changed files with 3 additions and 1 deletions
|
@ -27,9 +27,11 @@ def check_output_test(deno_exe_filename):
|
||||||
expected_out = f.read()
|
expected_out = f.read()
|
||||||
cmd = [deno_exe_filename, script_abs]
|
cmd = [deno_exe_filename, script_abs]
|
||||||
print " ".join(cmd)
|
print " ".join(cmd)
|
||||||
actual_out = subprocess.check_output(cmd)
|
actual_out = subprocess.check_output(cmd, universal_newlines=True)
|
||||||
if expected_out != actual_out:
|
if expected_out != actual_out:
|
||||||
print "Expected output does not match actual."
|
print "Expected output does not match actual."
|
||||||
|
print "Expected: " + expected_out
|
||||||
|
print "Actual: " + actual_out
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue