D5422: py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Dec 14 16:30:46 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This makes the test pass on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5422
AFFECTED FILES
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()
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list