py3: add b'' prefixes in test-alias.t
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 23 Feb 2018 18:03:58 +0530
changeset 36380 2bff5f05b01b
parent 36379 28551d4c5ee8
child 36381 2827fa74adbc
py3: add b'' prefixes in test-alias.t # skip-blame as it's just b'' prefixes
tests/test-alias.t
--- a/tests/test-alias.t	Fri Feb 23 17:26:45 2018 +0530
+++ b/tests/test-alias.t	Fri Feb 23 18:03:58 2018 +0530
@@ -548,12 +548,12 @@
   > from mercurial import cmdutil, commands, registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command('expandalias')
+  > @command(b'expandalias')
   > def expandalias(ui, repo, name):
   >     alias = cmdutil.findcmd(name, commands.table)[1][0]
-  >     ui.write('%s args: %s\n' % (name, ' '.join(alias.args)))
+  >     ui.write(b'%s args: %s\n' % (name, b' '.join(alias.args)))
   >     os.environ['COUNT'] = '2'
-  >     ui.write('%s args: %s (with COUNT=2)\n' % (name, ' '.join(alias.args)))
+  >     ui.write(b'%s args: %s (with COUNT=2)\n' % (name, b' '.join(alias.args)))
   > EOF
 
   $ cat >> $HGRCPATH <<'EOF'