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 @@ -3,9 +3,16 @@ from __future__ import absolute_import, import os import tempfile -from mercurial import util +from mercurial import ( + pycompat, + util, +) + from hgext.fastannotate import error, revmap +if pycompat.ispy3: + xrange = range + def genhsh(i): return chr(i) + b'\0' * 19