py3: use range instead of xrange in tests/test-convert-mtn.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:18:24 +0530
changeset 36290 2b7318db0a89
parent 36289 257071fd3357
child 36291 57c671cf7a69
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
tests/test-convert-mtn.t
--- a/tests/test-convert-mtn.t	Sun Feb 18 18:28:45 2018 +0530
+++ b/tests/test-convert-mtn.t	Sun Feb 18 18:18:24 2018 +0530
@@ -218,7 +218,7 @@
 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