Commit c3dcb590 authored by Damien George's avatar Damien George
Browse files

Merge pull request #603 from stinos/windows-tests-newline

tests: Fix handling of newlines from expected output files on windows
parents 18ceb705 a4dbc73e
......@@ -44,8 +44,10 @@ def run_tests(pyb, tests):
# expected output given by a file, so read that in
with open(test_file_expected, 'rb') as f:
output_expected =
if == 'nt':
output_expected = output_expected.replace(b'\n', b'\r\n')
# run CPython to work out expeceted output
# run CPython to work out expected output
output_expected = subprocess.check_output([CPYTHON3, '-B', test_file])
except subprocess.CalledProcessError:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment