D3218: py3: use sys.stdout instead of print in test-mq-qpush-fail.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Apr 11 08:31:44 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5d81f1b7051b: py3: use sys.stdout instead of print in test-mq-qpush-fail.t (authored by pulkit, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D3218?vs=7964&id=7970#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3218?vs=7964&id=7970
REVISION DETAIL
https://phab.mercurial-scm.org/D3218
AFFECTED FILES
tests/test-mq-qpush-fail.t
CHANGE DETAILS
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 @@
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
To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list