py3: make sure we write bytes to file
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 10 Apr 2018 19:32:08 +0530
changeset 37526 f5ffcac66c02
parent 37525 a7de62adcf03
child 37527 1c09481acdcc
py3: make sure we write bytes to file # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3220
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 <<EOF
   > import sys
   > path = sys.argv[1]
-  > open(path, 'wb').write('BIN\x00ARY')
+  > open(path, 'wb').write(b'BIN\x00ARY')
   > EOF
   $ $PYTHON writebin.py bucephalus