diff --git a/tests/test-mq-eol.t b/tests/test-mq-eol.t --- a/tests/test-mq-eol.t +++ b/tests/test-mq-eol.t @@ -30,10 +30,14 @@ Test interactions between mq and patch.e $ cat > cateol.py < import sys + > try: + > stdout = sys.stdout.buffer + > except AttributeError: + > stdout = sys.stdout > for line in open(sys.argv[1], 'rb'): > line = line.replace(b'\r', b'') > line = line.replace(b'\n', b'') - > print(line) + > stdout.write(line + b'\n') > EOF $ hg init repo