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 07:21:05 EDT 2018
pulkit updated this revision to Diff 7964.
pulkit retitled this revision from "py3: use print as a function in test-mq-qpush-fail.t" to "py3: use sys.stdout instead of print in test-mq-qpush-fail.t".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3218?vs=7930&id=7964
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; stdout = getattr(sys.stdout, "buffer", sys.stdout); stdout.flush(); stdout.write("\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