# HG changeset patch # User Pulkit Goyal # Date 1544805020 -10800 # Node ID 5fd63bca43a49ff4f41070c889ea0b2f79f04706 # Parent ebc471ce9fad418ba6d7ae7d61147d08acd2ff41 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 diff -r ebc471ce9fad -r 5fd63bca43a4 contrib/python3-whitelist --- 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 diff -r ebc471ce9fad -r 5fd63bca43a4 tests/test-fastannotate-revmap.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()