diff --git a/tests/test-remotefilelog-histpack.py b/tests/test-remotefilelog-histpack.py --- a/tests/test-remotefilelog-histpack.py +++ b/tests/test-remotefilelog-histpack.py @@ -15,6 +15,7 @@ from mercurial.node import nullid from mercurial import ( + pycompat, ui as uimod, ) # Load the local remotefilelog, not the system one @@ -24,6 +25,9 @@ historypack, ) +if pycompat.ispy3: + xrange = range + class histpacktests(unittest.TestCase): def setUp(self): self.tempdirs = []