# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-10 14:02:08 # Node ID f5ffcac66c0240ce7a3f2938b4200a9a59e60df3 # Parent a7de62adcf0399d7f548b40f7e7faa8739e03e59 py3: make sure we write bytes to file # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3220 diff --git a/tests/test-mq.t b/tests/test-mq.t --- a/tests/test-mq.t +++ b/tests/test-mq.t @@ -1126,7 +1126,7 @@ create a git binary patch $ cat > writebin.py < import sys > path = sys.argv[1] - > open(path, 'wb').write('BIN\x00ARY') + > open(path, 'wb').write(b'BIN\x00ARY') > EOF $ $PYTHON writebin.py bucephalus