diff tests/test-mq.t @ 37526:f5ffcac66c02

py3: make sure we write bytes to file # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3220
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 10 Apr 2018 19:32:08 +0530
parents 4441705b7111
children 89630d0b3e23
line wrap: on
line diff
--- 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