Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35946:cf887d601014 | 35947:a36d3c8a0e41 |
---|---|
79 $ hg init b | 79 $ hg init b |
80 $ cd b | 80 $ cd b |
81 $ cat > writebin.py <<EOF | 81 $ cat > writebin.py <<EOF |
82 > import sys | 82 > import sys |
83 > path = sys.argv[1] | 83 > path = sys.argv[1] |
84 > open(path, 'wb').write('\x00\x01\x02\x03') | 84 > open(path, 'wb').write(b'\x00\x01\x02\x03') |
85 > EOF | 85 > EOF |
86 $ $PYTHON writebin.py binfile.bin | 86 $ $PYTHON writebin.py binfile.bin |
87 $ hg add binfile.bin | 87 $ hg add binfile.bin |
88 $ hg ci -m 'add binfile.bin' | 88 $ hg ci -m 'add binfile.bin' |
89 | 89 |