changeset 40946:5fd63bca43a4

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 14 Dec 2018 19:30:20 +0300
parents ebc471ce9fad
children 9e462fb88f79
files contrib/python3-whitelist tests/test-fastannotate-revmap.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()