Mercurial > public > mercurial-scm > hg-stable
diff tests/test-bundle2-format.t @ 33109:fce4ed2912bb
py3: make sure commands name are bytes in tests
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 08:20:05 +0530 |
parents | 46ba2cdda476 |
children | 2428e8ec0793 |
line wrap: on
line diff
--- a/tests/test-bundle2-format.t Sun Jun 25 03:11:55 2017 +0530 +++ b/tests/test-bundle2-format.t Sun Jun 25 08:20:05 2017 +0530 @@ -70,7 +70,7 @@ > for val in op.reply.capabilities[cap]: > op.ui.write('debugreply: %r\n' % val) > - > @command('bundle2', + > @command(b'bundle2', > [('', 'param', [], 'stream level parameter'), > ('', 'unknown', False, 'include an unknown mandatory part in the bundle'), > ('', 'unknownparams', False, 'include an unknown part parameters in the bundle'), @@ -169,7 +169,7 @@ > finally: > file.flush() > - > @command('unbundle2', [], '') + > @command(b'unbundle2', [], '') > def cmdunbundle2(ui, repo, replypath=None): > """process a bundle2 stream from stdin on the current repo""" > try: @@ -200,7 +200,7 @@ > for chunk in op.reply.getchunks(): > file.write(chunk) > - > @command('statbundle2', [], '') + > @command(b'statbundle2', [], '') > def cmdstatbundle2(ui, repo): > """print statistic on the bundle2 container read from stdin""" > unbundler = bundle2.getunbundler(ui, sys.stdin)