Patchwork D5422: py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py

login
register
mail settings
Submitter phabricator
Date Dec. 14, 2018, 4:39 p.m.
Message ID <2e7a977ed55d9083b2aa02d2d6469c08@localhost.localdomain>
Download mbox | patch
Permalink /patch/37145/
State Not Applicable
Headers show

Comments

phabricator - Dec. 14, 2018, 4:39 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5702c3ead5de: py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5422?vs=12843&id=12847

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

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-fastannotate-revmap.py

CHANGE DETAILS




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

Patch

diff --git a/tests/test-fastannotate-revmap.py b/tests/test-fastannotate-revmap.py
--- a/tests/test-fastannotate-revmap.py
+++ b/tests/test-fastannotate-revmap.py
@@ -14,7 +14,7 @@ 
     xrange = range
 
 def genhsh(i):
-    return chr(i) + b'\0' * 19
+    return pycompat.bytechr(i) + b'\0' * 19
 
 def gettemppath():
     fd, path = tempfile.mkstemp()
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -198,6 +198,7 @@ 
 test-extensions-afterloaded.t
 test-extensions-wrapfunction.py
 test-extra-filelog-entry.t
+test-fastannotate-revmap.py
 test-fetch.t
 test-filebranch.t
 test-filecache.py