Patchwork D3218: py3: use sys.stdout instead of print in test-mq-qpush-fail.t

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 12:31 p.m.
Message ID <4b1cd0e5a3322405f86d37cf7b65ca60@localhost.localdomain>
Download mbox | patch
Permalink /patch/30683/
State Not Applicable
Headers show

Comments

phabricator - April 11, 2018, 12:31 p.m.
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




To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

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