py3: use range instead of xrange in tests/test-revset2.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:20:57 +0530
changeset 36326 8591d6afc629
parent 36325 b543b3ce608b
child 36327 2507bf180413
py3: use range instead of xrange in tests/test-revset2.t xrange is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2331
tests/test-revset2.t
--- a/tests/test-revset2.t	Sun Feb 18 18:20:21 2018 +0530
+++ b/tests/test-revset2.t	Sun Feb 18 18:20:57 2018 +0530
@@ -420,7 +420,7 @@
 test that repeated `-r` options never eat up stack (issue4565)
 (uses `-r 0::1` to avoid possible optimization at old-style parser)
 
-  $ hg log -T '{rev}\n' `$PYTHON -c "for i in xrange(500): print '-r 0::1 ',"`
+  $ hg log -T '{rev}\n' `$PYTHON -c "for i in range(500): print '-r 0::1 ',"`
   0
   1