py3: use sys.stdout instead of print in test-mq-qpush-fail.t
Differential Revision: https://phab.mercurial-scm.org/D3218
--- a/tests/test-mq-qpush-fail.t Tue Apr 10 18:57:32 2018 +0530
+++ b/tests/test-mq-qpush-fail.t Tue Apr 10 18:57:56 2018 +0530
@@ -31,7 +31,7 @@
popping patch2
popping patch1
patch queue now empty
- $ $PYTHON -c 'print "\xe9"' > message
+ $ $PYTHON -c 'import sys; getattr(sys.stdout, "buffer", sys.stdout).write(b"\xe9\n")' > message
$ cat .hg/patches/bad-patch >> message
$ mv message .hg/patches/bad-patch
$ cat > $TESTTMP/wrapplayback.py <<EOF