py3: use range instead of xrange in tests/test-issue4074.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:19:10 +0530
changeset 36324 57c671cf7a69
parent 36323 2b7318db0a89
child 36325 b543b3ce608b
py3: use range instead of xrange in tests/test-issue4074.t xrange in not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2329
tests/test-issue4074.t
--- a/tests/test-issue4074.t	Sun Feb 18 18:18:24 2018 +0530
+++ b/tests/test-issue4074.t	Sun Feb 18 18:19:10 2018 +0530
@@ -4,7 +4,7 @@
 
   $ cat > s.py <<EOF
   > import random
-  > for x in xrange(100000):
+  > for x in range(100000):
   >     print
   >     if random.randint(0, 100) >= 50:
   >         x += 1