##// END OF EJS Templates
tests: more bundle2 non-binary file test fixes
Matt Mackall -
r22089:1e392c63 stable
parent child Browse files
Show More
@@ -125,7 +125,7 b' Create an extension to test bundle2 API'
125 > if path is None:
125 > if path is None:
126 > file = sys.stdout
126 > file = sys.stdout
127 > else:
127 > else:
128 > file = open(path, 'w')
128 > file = open(path, 'wb')
129 >
129 >
130 > for chunk in bundler.getchunks():
130 > for chunk in bundler.getchunks():
131 > file.write(chunk)
131 > file.write(chunk)
@@ -157,7 +157,7 b' Create an extension to test bundle2 API'
157 > for rec in op.records['changegroup']:
157 > for rec in op.records['changegroup']:
158 > ui.write('addchangegroup return: %i\n' % rec['return'])
158 > ui.write('addchangegroup return: %i\n' % rec['return'])
159 > if op.reply is not None and replypath is not None:
159 > if op.reply is not None and replypath is not None:
160 > file = open(replypath, 'w')
160 > file = open(replypath, 'wb')
161 > for chunk in op.reply.getchunks():
161 > for chunk in op.reply.getchunks():
162 > file.write(chunk)
162 > file.write(chunk)
163 >
163 >
General Comments 0
You need to be logged in to leave comments. Login now