diff tests/test-import-merge.t @ 20303:3a3731a60354

test-import-merge: mangle file in binary mode This should fix a test breakage on Windows.
author Matt Mackall <mpm@selenic.com>
date Mon, 20 Jan 2014 17:09:20 -0600
parents 3193b23eec61
children f3200bf460a8 0c838e7459a5
line wrap: on
line diff
--- 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 ..