changeset 36322:257071fd3357

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 18:28:45 +0530
parents 217b08b1de28
children 2b7318db0a89
files tests/test-commandserver.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')