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

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 2:17 p.m.
Message ID <acc8e8c4d667f0dfb49170af1398f23f@localhost.localdomain>
Download mbox | patch
Permalink /patch/28093/
State Not Applicable
Headers show

Comments

phabricator - Feb. 18, 2018, 2:17 p.m.
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




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

Patch

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 = {}