[PATCH 6 of 6] tests: avoid repr in test-bundle2-format.t

Pulkit Goyal 7895pulkit at gmail.com
Tue Sep 19 21:52:35 EDT 2017


The series looks good to me.

On Tue, Sep 19, 2017 at 9:38 PM, Augie Fackler <raf at durin42.com> wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1505758787 14400
> #      Mon Sep 18 14:19:47 2017 -0400
> # Node ID eef6eaa44b13c7d8f3802776586d119f1dfb33f7
> # Parent  df919997998c3a6fa3f3182a84a7d13011a58ed9
> tests: avoid repr in test-bundle2-format.t
>
> We don't *really* need it here, and it was making Python 3 harder.
>
> diff --git a/tests/test-bundle2-format.t b/tests/test-bundle2-format.t
> --- a/tests/test-bundle2-format.t
> +++ b/tests/test-bundle2-format.t
> @@ -68,9 +68,9 @@ Create an extension to test bundle2 API
>    >     else:
>    >         op.ui.write(b'debugreply: capabilities:\n')
>    >         for cap in sorted(op.reply.capabilities):
> -  >             op.ui.write(b'debugreply:     %r\n' % cap)
> +  >             op.ui.write(b"debugreply:     '%s'\n" % cap)
>    >             for val in op.reply.capabilities[cap]:
> -  >                 op.ui.write(b'debugreply:         %r\n' % val)
> +  >                 op.ui.write(b"debugreply:         '%s'\n" % val)
>    >
>    > @command(b'bundle2',
>    >          [(b'', b'param', [], b'stream level parameter'),
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list