Patchwork D2328: py3: use range instead of xrange in tests/test-convert-mtn.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 2:17 p.m.
Message ID <6a2db5156554036bd82db0d4a7d906e6@localhost.localdomain>
Download mbox | patch
Permalink /patch/28100/
State Not Applicable
Headers show

Comments

phabricator - Feb. 18, 2018, 2:17 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2b7318db0a89: py3: use range instead of xrange in tests/test-convert-mtn.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2328?vs=5857&id=5873

REVISION DETAIL
  https://phab.mercurial-scm.org/D2328

AFFECTED FILES
  tests/test-convert-mtn.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

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 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