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

Augie Fackler raf at durin42.com
Tue Sep 19 12:08:29 EDT 2017


# 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'),


More information about the Mercurial-devel mailing list