Patchwork D2331: py3: use range instead of xrange in tests/test-revset2.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 1:31 p.m.
Message ID <differential-rev-PHID-DREV-yiuhe47id5qmlz2qnh27-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28084/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 1:31 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  xrange is not present on Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-revset2.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -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