Mercurial > hg
changeset 22089:1e392c63fb76 stable
tests: more bundle2 non-binary file test fixes
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 10 Aug 2014 15:26:12 -0500 |
parents | af62f0280a76 |
children | 711b5cfddb1b f72b71ba756b |
files | tests/test-bundle2.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bundle2.t Sun Aug 10 13:53:36 2014 -0500 +++ b/tests/test-bundle2.t Sun Aug 10 15:26:12 2014 -0500 @@ -125,7 +125,7 @@ > 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 @@ > 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) >