# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526736330 -19800 # Node ID 307b19c7c043df9d33c1d1f70400dc973e7ddf9a # Parent b95a6fb7ae667e7ec128fcba0c75d63d84863bb9 py3: add b'' prefixes in tests/test-parseindex.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3611 diff -r b95a6fb7ae66 -r 307b19c7c043 tests/test-parseindex.t --- a/tests/test-parseindex.t Sat May 19 18:52:56 2018 +0530 +++ b/tests/test-parseindex.t Sat May 19 18:55:30 2018 +0530 @@ -139,10 +139,10 @@ $ $PYTHON < data = open("limit/.hg/store/00changelog.i", "rb").read() - > for n, p in [('limit', '\0\0\0\x02'), ('segv', '\0\x01\0\0')]: + > for n, p in [(b'limit', b'\0\0\0\x02'), (b'segv', b'\0\x01\0\0')]: > # corrupt p1 at rev0 and p2 at rev1 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:] - > open(n + "/.hg/store/00changelog.i", "wb").write(d) + > open(n + b"/.hg/store/00changelog.i", "wb").write(d) > EOF $ hg -R limit debugindex -f1 -c