changeset 36323:2b7318db0a89

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 18:18:24 +0530
parents 257071fd3357
children 57c671cf7a69
files tests/test-convert-mtn.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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