# HG changeset patch # User Matt Mackall # Date 2014-08-10 20:26:12 # Node ID 1e392c63fb76a4fe389c90c90b2db594c637a57f # Parent af62f0280a76d15a1bbc7c07817b73952b23117c tests: more bundle2 non-binary file test fixes diff --git a/tests/test-bundle2.t b/tests/test-bundle2.t --- a/tests/test-bundle2.t +++ b/tests/test-bundle2.t @@ -125,7 +125,7 @@ Create an extension to test bundle2 API > if path is None: > file = sys.stdout > else: - > file = open(path, 'w') + > file = open(path, 'wb') > > for chunk in bundler.getchunks(): > file.write(chunk) @@ -157,7 +157,7 @@ Create an extension to test bundle2 API > for rec in op.records['changegroup']: > ui.write('addchangegroup return: %i\n' % rec['return']) > if op.reply is not None and replypath is not None: - > file = open(replypath, 'w') + > file = open(replypath, 'wb') > for chunk in op.reply.getchunks(): > file.write(chunk) >