# HG changeset patch # User Matt Mackall # Date 2014-10-23 18:44:34 # Node ID 605a8cb61a0c59e102cbb9a3ba845ea0754efe79 # Parent c312ef382033f1ab7cd8213f9f258d4c0f56b37b run-tests: output diffs with only forward slashes This removes some gratuitous variance when testing on Windows with test-run-tests.t. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -298,6 +298,7 @@ def getdiff(expected, output, ref, err): lines = [] for line in difflib.unified_diff(expected, output, ref, err): if line.startswith('+++') or line.startswith('---'): + line = line.replace('\\', '/') if line.endswith(' \n'): line = line[:-2] + '\n' lines.append(line)