D2324: py3: use range instead of xrange on py3 in tests/test-filecache.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Feb 18 09:17:17 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdaa5f47558cf: py3: use range instead of xrange on py3 in tests/test-filecache.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2324?vs=5853&id=5869

REVISION DETAIL
  https://phab.mercurial-scm.org/D2324

AFFECTED FILES
  tests/test-filecache.py

CHANGE DETAILS

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 @@
     extensions,
     hg,
     localrepo,
+    pycompat,
     ui as uimod,
     util,
     vfs as vfsmod,
 )
 
+if pycompat.ispy3:
+    xrange = range
+
 class fakerepo(object):
     def __init__(self):
         self._filecache = {}



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list