# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1518955953 -19800 # 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 -r 3ec9afb951a0 -r daa5f47558cf tests/test-filecache.py --- a/tests/test-filecache.py Sun Feb 18 17:41:56 2018 +0530 +++ b/tests/test-filecache.py Sun Feb 18 17:42:33 2018 +0530 @@ -11,11 +11,15 @@ extensions, hg, localrepo, + pycompat, ui as uimod, util, vfs as vfsmod, ) +if pycompat.ispy3: + xrange = range + class fakerepo(object): def __init__(self): self._filecache = {}