# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-10 13:27:56 # Node ID 5d81f1b7051b0b202e83b4b9d3a7d404e45b574f # Parent d17cfb23017ce9eb4bb3980e3815f84f73a89264 py3: use sys.stdout instead of print in test-mq-qpush-fail.t Differential Revision: https://phab.mercurial-scm.org/D3218 diff --git a/tests/test-mq-qpush-fail.t b/tests/test-mq-qpush-fail.t --- a/tests/test-mq-qpush-fail.t +++ b/tests/test-mq-qpush-fail.t @@ -31,7 +31,7 @@ test qpush on empty series 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 <