diff tests/test-diff-newlines.t @ 33305:aaa1f8f514cf

py3: fix test-diff-newlines.t to be compatible with py3
author Boris Feld <boris.feld@octobus.net>
date Thu, 06 Jul 2017 17:18:50 +0200
parents c63a09b6b337
children 5abc47d4ca6b
line wrap: on
line diff
--- a/tests/test-diff-newlines.t	Thu Jul 06 14:48:16 2017 -0700
+++ b/tests/test-diff-newlines.t	Thu Jul 06 17:18:50 2017 +0200
@@ -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