tests/test-filecache.py
changeset 36286 daa5f47558cf
parent 31284 74cbbd5420ba
child 36781 ffa3026d4196
--- 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 = {}