diff tests/test-mq-qpush-fail.t @ 37524:5d81f1b7051b

py3: use sys.stdout instead of print in test-mq-qpush-fail.t Differential Revision: https://phab.mercurial-scm.org/D3218
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 10 Apr 2018 18:57:56 +0530
parents 9e4f82bc2b0b
children 5abc47d4ca6b
line wrap: on
line diff
--- 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