# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-03-01 18:29:20 # Node ID eafd380fe1b8b8cd3580298cc7e5fc450d3ab183 # Parent f1e05fe1a78f4a7a50e2d9161fb703386fba7ac0 py3: make sure we write bytes in a file open in bytes mode # skip-blame just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D2519 diff --git a/tests/test-grep.t b/tests/test-grep.t --- a/tests/test-grep.t +++ b/tests/test-grep.t @@ -271,7 +271,7 @@ test substring match: '^' should only ma match in last "line" without newline - $ $PYTHON -c 'fp = open("noeol", "wb"); fp.write("no infinite loop"); fp.close();' + $ $PYTHON -c 'fp = open("noeol", "wb"); fp.write(b"no infinite loop"); fp.close();' $ hg ci -Amnoeol adding noeol $ hg grep loop