merge with stable
authorMatt Mackall <mpm@selenic.com>
Sun, 10 Aug 2014 15:26:33 -0500
changeset 22090 711b5cfddb1b
parent 22088 a82c5975095d (current diff)
parent 22089 1e392c63fb76 (diff)
child 22092 6e5ff8e26af6
merge with stable
tests/test-bundle2.t
--- a/tests/test-bundle2.t	Sun Aug 10 14:30:30 2014 -0500
+++ b/tests/test-bundle2.t	Sun Aug 10 15:26:33 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)
   >