Commit ebd422ae authored by Simon Marlow's avatar Simon Marlow

fix a bug in displaying diffs when there is no expected output

parent 5296caf0
......@@ -1399,7 +1399,7 @@ def compare_outputs( kind, normaliser, extra_normaliser,
expected_str = extra_normaliser(normaliser(expected_raw))
else:
expected_str = ''
expected_file = ''
expected_file = '/dev/null'
actual_raw = read_no_crs(actual_file)
actual_str = extra_normaliser(normaliser(actual_raw))
......@@ -1407,7 +1407,7 @@ def compare_outputs( kind, normaliser, extra_normaliser,
if expected_str != actual_str:
print 'Actual ' + kind + ' output differs from expected:'
if expected_file == '':
if expected_file == '/dev/null':
expected_normalised_file = '/dev/null'
else:
......
Markdown is supported
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