diff tests/test-diff-binary-file.t @ 35947:a36d3c8a0e41

py3: add b'' prefixes to string literals in test files # skip-blame because we are just adding b'' Differential Revision: https://phab.mercurial-scm.org/D2075
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 07 Feb 2018 13:34:51 +0530
parents 75be14993fda
children 5abc47d4ca6b
line wrap: on
line diff
--- a/tests/test-diff-binary-file.t	Wed Feb 07 13:21:06 2018 +0530
+++ b/tests/test-diff-binary-file.t	Wed Feb 07 13:34:51 2018 +0530
@@ -81,7 +81,7 @@
   $ cat > writebin.py <<EOF
   > import sys
   > path = sys.argv[1]
-  > open(path, 'wb').write('\x00\x01\x02\x03')
+  > open(path, 'wb').write(b'\x00\x01\x02\x03')
   > EOF
   $ $PYTHON writebin.py binfile.bin
   $ hg add binfile.bin