# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-18 12:48:24 # Node ID 2b7318db0a89015d7521518261e57f94245cd389 # Parent 257071fd33579d00af59211c97daba8de659bc04 py3: use range instead of xrange in tests/test-convert-mtn.t xrange in not present on Python 3. This change will make the test a bit slower on Python 2. Differential Revision: https://phab.mercurial-scm.org/D2328 diff --git a/tests/test-convert-mtn.t b/tests/test-convert-mtn.t --- a/tests/test-convert-mtn.t +++ b/tests/test-convert-mtn.t @@ -218,7 +218,7 @@ test diverging directory moves test large file support (> 32kB) >>> fp = open('large-file', 'wb') - >>> for x in xrange(10000): fp.write(b'%d\n' % x) + >>> for x in range(10000): fp.write(b'%d\n' % x) >>> fp.close() $ md5sum.py large-file 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file