##// END OF EJS Templates
py3: add b'' prefixes in tests/test-parseindex.t...
Pulkit Goyal -
r38098:307b19c7 default
parent child Browse files
Show More
@@ -139,10 +139,10 b' Test corrupted p1/p2 fields that could c'
139
139
140 $ $PYTHON <<EOF
140 $ $PYTHON <<EOF
141 > data = open("limit/.hg/store/00changelog.i", "rb").read()
141 > data = open("limit/.hg/store/00changelog.i", "rb").read()
142 > for n, p in [('limit', '\0\0\0\x02'), ('segv', '\0\x01\0\0')]:
142 > for n, p in [(b'limit', b'\0\0\0\x02'), (b'segv', b'\0\x01\0\0')]:
143 > # corrupt p1 at rev0 and p2 at rev1
143 > # corrupt p1 at rev0 and p2 at rev1
144 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:]
144 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:]
145 > open(n + "/.hg/store/00changelog.i", "wb").write(d)
145 > open(n + b"/.hg/store/00changelog.i", "wb").write(d)
146 > EOF
146 > EOF
147
147
148 $ hg -R limit debugindex -f1 -c
148 $ hg -R limit debugindex -f1 -c
General Comments 0
You need to be logged in to leave comments. Login now