py3: use range instead of xrange in tests/test-walk.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:07:12 +0530
changeset 36288 217b08b1de28
parent 36287 065445b44724
child 36289 257071fd3357
py3: use range instead of xrange in tests/test-walk.t xrange in not present in python 3. Differential Revision: https://phab.mercurial-scm.org/D2326
tests/test-walk.t
--- a/tests/test-walk.t	Sun Feb 18 17:43:12 2018 +0530
+++ b/tests/test-walk.t	Sun Feb 18 18:07:12 2018 +0530
@@ -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