diff tests/test-pager.t @ 38107:5a3feb2bc9dd

py3: add b'' prefixes in tests/test-pager.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3598
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:31:15 +0530
parents 7a9c905e51f9
children 5abc47d4ca6b
line wrap: on
line diff
--- a/tests/test-pager.t	Sat May 19 18:30:20 2018 +0530
+++ b/tests/test-pager.t	Sat May 19 18:31:15 2018 +0530
@@ -260,9 +260,9 @@
   > from mercurial import commands, registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command(b'fortytwo', [], 'fortytwo', norepo=True)
+  > @command(b'fortytwo', [], b'fortytwo', norepo=True)
   > def fortytwo(ui, *opts):
-  >     ui.write('42\n')
+  >     ui.write(b'42\n')
   >     return 42
   > EOF
 
@@ -377,8 +377,8 @@
   $ cat > $TESTTMP/pushbufferpager.py <<EOF
   > def uisetup(ui):
   >     ui.pushbuffer()
-  >     ui.pager('mycmd')
-  >     ui.write('content\n')
+  >     ui.pager(b'mycmd')
+  >     ui.write(b'content\n')
   >     ui.write(ui.popbuffer())
   > EOF