Patchwork D2326: py3: use range instead of xrange in tests/test-walk.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 2:17 p.m.
Message ID <00ee4bd3b338b2658578d02b0a7ee206@localhost.localdomain>
Download mbox | patch
Permalink /patch/28096/
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 rHG217b08b1de28: py3: use range instead of xrange in tests/test-walk.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2326?vs=5855&id=5870

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

AFFECTED FILES
  tests/test-walk.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-walk.t b/tests/test-walk.t
--- a/tests/test-walk.t
+++ b/tests/test-walk.t
@@ -519,7 +519,7 @@ 
 
   $ cd t
   $ echo fennel > overflow.list
-  $ $PYTHON -c "for i in xrange(20000 / 100): print 'x' * 100" >> overflow.list
+  $ $PYTHON -c "for i in range(20000 / 100): print 'x' * 100" >> overflow.list
   $ echo fenugreek >> overflow.list
   $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '(^matcher: |^xxx)'
   f  fennel     fennel     exact