Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHG5d81f1b7051b: py3: use sys.stdout instead of print in test-mq-qpush-fail.t
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
print(nonascii) may fail depending on the locale.
We have to use getattr(sys.stdout, 'buffer', sys.stdout) or pycompat.stdout.
Comment Actions
I get the following failure:
--- /home/foobar/repo/hg-committed/tests/test-mq-qpush-fail.t +++ /home/foobar/repo/hg-committed/tests/test-mq-qpush-fail.t.err @@ -60,7 +60,7 @@ cleaning up working directory... reverting foo done - abort: decoding near '\xe9': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc) + abort: decoding near '\xe9From: tes': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc) [255] $ hg parents changeset: 0:bbd179dfa0a7
I see that you advised same on D2334 and I got the above failure that time too and was unable to followup. Any ideas on this failure? I tried stdout.flush() too.