changeset 36291:57c671cf7a69

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