# HG changeset patch # User Matt Mackall # Date 1390259360 21600 # Node ID 3a3731a6035495bd8e856708494dc163d99a9d37 # Parent 654dd8284eadb1f8f12d459a97b7a2401800d6c3 test-import-merge: mangle file in binary mode This should fix a test breakage on Windows. diff -r 654dd8284ead -r 3a3731a60354 tests/test-import-merge.t --- a/tests/test-import-merge.t Sun Jan 19 22:58:33 2014 -0600 +++ b/tests/test-import-merge.t Mon Jan 20 17:09:20 2014 -0600 @@ -130,7 +130,7 @@ $ hg ci -m3 $ hg export 2 | head -7 > ../a.patch $ hg export tip > out - >>> apatch = open("../a.patch", "a") + >>> apatch = open("../a.patch", "ab") >>> apatch.write("".join(open("out").readlines()[7:])) $ cd ..