py3: use range instead of xrange in tests/test-commandserver.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 18:28:45 +0530
changeset 36289 257071fd3357
parent 36288 217b08b1de28
child 36290 2b7318db0a89
py3: use range instead of xrange in tests/test-commandserver.t xrange is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D2327
tests/test-commandserver.t
--- a/tests/test-commandserver.t	Sun Feb 18 18:07:12 2018 +0530
+++ b/tests/test-commandserver.t	Sun Feb 18 18:28:45 2018 +0530
@@ -411,7 +411,7 @@
   ...     # load _phasecache._phaserevs and _phasesets
   ...     runcommand(server, ['log', '-qr', 'draft()'])
   ...     # create draft commits by another process
-  ...     for i in xrange(5, 7):
+  ...     for i in range(5, 7):
   ...         f = open('a', 'ab')
   ...         f.seek(0, os.SEEK_END)
   ...         f.write('a\n')