Mercurial > public > mercurial-scm > hg-stable
diff tests/test-grep.t @ 36525:eafd380fe1b8
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 01 Mar 2018 23:59:20 +0530 |
parents | 33461139c31c |
children | a2a6755a3def |
line wrap: on
line diff
--- a/tests/test-grep.t Thu Mar 01 23:58:21 2018 +0530 +++ b/tests/test-grep.t Thu Mar 01 23:59:20 2018 +0530 @@ -271,7 +271,7 @@ 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