changeset 36293:8591d6afc629

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 18:20:57 +0530
parents b543b3ce608b
children 2507bf180413
files tests/test-revset2.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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