diff tests/test-commit-interactive-curses.t @ 38119:b95a6fb7ae66

py3: fix .write() calls in few tests This patch adds b'' prefixes to make sure we write bytes and add `and None` in the end to suppress the output by .write() calls. Differential Revision: https://phab.mercurial-scm.org/D3610
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:52:56 +0530
parents 4441705b7111
children 00368bc0a614
line wrap: on
line diff
--- a/tests/test-commit-interactive-curses.t	Sat May 19 18:51:14 2018 +0530
+++ b/tests/test-commit-interactive-curses.t	Sat May 19 18:52:56 2018 +0530
@@ -68,7 +68,7 @@
 Committing only one file
 
   $ echo "a" >> a
-  >>> open('b', 'wb').write("1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n")
+  >>> open('b', 'wb').write(b"1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n") and None
   $ hg add b
   $ cat <<EOF >testModeCommands
   > TOGGLE