# HG changeset patch # User Boris Feld # Date 2017-07-06 15:18:50 # Node ID aaa1f8f514cff1d5ef9c7c1d5e919dc8dc8a72f7 # Parent 3e1accab7447b67ebb58d5b5da341e553a4cc564 py3: fix test-diff-newlines.t to be compatible with py3 diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -11,6 +11,7 @@ test-contrib-check-code.t test-contrib-check-commit.t test-ctxmanager.py test-diff-issue2761.t +test-diff-newlines.t test-diff-reverse.t test-diff-subdir.t test-dirstate-nonnormalset.t diff --git a/tests/test-diff-newlines.t b/tests/test-diff-newlines.t --- a/tests/test-diff-newlines.t +++ b/tests/test-diff-newlines.t @@ -1,6 +1,6 @@ $ hg init - $ $PYTHON -c 'file("a", "wb").write("confuse str.splitlines\nembedded\rnewline\n")' + $ $PYTHON -c 'open("a", "wb").write(b"confuse str.splitlines\nembedded\rnewline\n")' $ hg ci -Ama -d '1 0' adding a