py3: add b'' prefixes in tests/test-pager.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 18:31:15 +0530
changeset 38107 5a3feb2bc9dd
parent 38106 1a09886ab03a
child 38108 fd8eedcc3fd2
py3: add b'' prefixes in tests/test-pager.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3598
tests/test-pager.t
--- 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