Mercurial > hg
comparison tests/test-clonebundles.t @ 40161:3eea8e83c261
py3: tweak stdout writing in test-hgweb-no-path-info.t
We want to write bytes for convenience. This requires sys.stdout.buffer.
But using sys.stdout.buffer introducing buffered output. So we sprinkle
code with sys.stdout.flush() to force immediate writes.
After all that, Python 3 was emitting b'' prefixed output for errors.
So we only print errors if there were some. There aren't, so b'' don't
come into play and output is identical in Python 2 and 3.
Differential Revision: https://phab.mercurial-scm.org/D4972
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 23:07:23 +0200 |
parents | 393e44324037 |
children | 5a81c4aa6313 |
comparison
equal
deleted
inserted
replaced
40160:6037c49b8964 | 40161:3eea8e83c261 |
---|