# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-18 12:12:33 # Node ID daa5f47558cfdb6c5567d1144bac46e8c908dc63 # Parent 3ec9afb951a02a682aea7b361982ac50aadc75db py3: use range instead of xrange on py3 in tests/test-filecache.py xrange is not present on py3. Differential Revision: https://phab.mercurial-scm.org/D2324 diff --git a/tests/test-filecache.py b/tests/test-filecache.py --- a/tests/test-filecache.py +++ b/tests/test-filecache.py @@ -11,11 +11,15 @@ from mercurial import ( extensions, hg, localrepo, + pycompat, ui as uimod, util, vfs as vfsmod, ) +if pycompat.ispy3: + xrange = range + class fakerepo(object): def __init__(self): self._filecache = {}