# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1523368928 -19800 # 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 -r a7de62adcf03 -r f5ffcac66c02 tests/test-mq.t --- a/tests/test-mq.t Tue Apr 10 19:21:16 2018 +0530 +++ b/tests/test-mq.t Tue Apr 10 19:32:08 2018 +0530 @@ -1126,7 +1126,7 @@ $ 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