Patchwork D3611: py3: add b'' prefixes in tests/test-parseindex.t

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:40 p.m.
Message ID <849bac90a2066d1a348f8e31f2dd53b7@localhost.localdomain>
Download mbox | patch
Permalink /patch/31731/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG307b19c7c043: py3: add b&#039;&#039; prefixes in tests/test-parseindex.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3611?vs=8782&id=8816

REVISION DETAIL
  https://phab.mercurial-scm.org/D3611

AFFECTED FILES
  tests/test-parseindex.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-parseindex.t b/tests/test-parseindex.t
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -139,10 +139,10 @@ 
 
   $ $PYTHON <<EOF
   > 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