py3: add b'' prefixes in tests/test-profile.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 18:32:24 +0530
changeset 38108 fd8eedcc3fd2
parent 38107 5a3feb2bc9dd
child 38109 34592dd3bfa2
py3: add b'' prefixes in tests/test-profile.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3599
tests/test-profile.t
--- a/tests/test-profile.t	Sat May 19 18:31:15 2018 +0530
+++ b/tests/test-profile.t	Sat May 19 18:32:24 2018 +0530
@@ -69,7 +69,7 @@
   > from mercurial import registrar, commands
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command(b'sleep', [], 'hg sleep')
+  > @command(b'sleep', [], b'hg sleep')
   > def sleep(ui, *args, **kwargs):
   >     time.sleep(0.1)
   > EOF
@@ -123,13 +123,13 @@
   >     yield
   >     print('fooprof: end profile')
   > def extsetup(ui):
-  >     ui.write('fooprof: loaded\n')
+  >     ui.write(b'fooprof: loaded\n')
   > EOF
 
   $ cat > otherextension.py <<EOF
   > from __future__ import absolute_import
   > def extsetup(ui):
-  >     ui.write('otherextension: loaded\n')
+  >     ui.write(b'otherextension: loaded\n')
   > EOF
 
   $ hg init b