diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
index ebc471ce9fad418ba6d7ae7d61147d08acd2ff41_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA==..5fd63bca43a49ff4f41070c889ea0b2f79f04706_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA== 100644
--- 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
diff --git a/tests/test-fastannotate-revmap.py b/tests/test-fastannotate-revmap.py
index ebc471ce9fad418ba6d7ae7d61147d08acd2ff41_dGVzdHMvdGVzdC1mYXN0YW5ub3RhdGUtcmV2bWFwLnB5..5fd63bca43a49ff4f41070c889ea0b2f79f04706_dGVzdHMvdGVzdC1mYXN0YW5ub3RhdGUtcmV2bWFwLnB5 100644
--- 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()