Mercurial > hg
changeset 36380:2bff5f05b01b
py3: add b'' prefixes in test-alias.t
# skip-blame as it's just b'' prefixes
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 23 Feb 2018 18:03:58 +0530 |
parents | 28551d4c5ee8 |
children | 2827fa74adbc |
files | tests/test-alias.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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'