py3: use pycompat.bytechr() instead of chr() in test-fastannotate-revmap.py
This makes the test pass on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5422
--- a/contrib/python3-whitelist Fri Dec 14 19:21:28 2018 +0300
+++ b/contrib/python3-whitelist Fri Dec 14 19:30:20 2018 +0300
@@ -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
--- a/tests/test-fastannotate-revmap.py Fri Dec 14 19:21:28 2018 +0300
+++ b/tests/test-fastannotate-revmap.py Fri Dec 14 19:30:20 2018 +0300
@@ -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()