Mercurial > hg-stable
comparison tests/test-issue4074.t @ 36324: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 | 24849d53697d |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
36323:2b7318db0a89 | 36324:57c671cf7a69 |
---|---|
2 | 2 |
3 A script to generate nasty diff worst-case scenarios: | 3 A script to generate nasty diff worst-case scenarios: |
4 | 4 |
5 $ cat > s.py <<EOF | 5 $ cat > s.py <<EOF |
6 > import random | 6 > import random |
7 > for x in xrange(100000): | 7 > for x in range(100000): |
8 > print | 8 > print |
9 > if random.randint(0, 100) >= 50: | 9 > if random.randint(0, 100) >= 50: |
10 > x += 1 | 10 > x += 1 |
11 > print(hex(x)) | 11 > print(hex(x)) |
12 > EOF | 12 > EOF |