D5422: py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Dec 14 11:32:10 EST 2018
pulkit updated this revision to Diff 12843.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5422?vs=12842&id=12843
REVISION DETAIL
https://phab.mercurial-scm.org/D5422
AFFECTED FILES
contrib/python3-whitelist
tests/test-fastannotate-revmap.py
CHANGE DETAILS
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
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list