From 7fcbeecad4827710ec1ad6d7bf877470570fe153 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 4 Jan 2016 16:56:43 -0800 Subject: python: use six.moves.range This is xrange on python 2.x and range on 3.x Signed-off-by: Dylan Baker Acked-by: Jose Fonseca --- unittests/summary_common_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unittests') diff --git a/unittests/summary_common_tests.py b/unittests/summary_common_tests.py index 93fecaf03..041961fdf 100644 --- a/unittests/summary_common_tests.py +++ b/unittests/summary_common_tests.py @@ -25,6 +25,7 @@ from __future__ import absolute_import, division, print_function import datetime import nose.tools as nt +from six.moves import range from framework import results, status, grouptools from framework.summary import common as summary @@ -245,7 +246,7 @@ class TestNamesSubtests(object): def test_all(self): """summary.Names.all: Handles subtests as groups""" baseline = {'foo', 'bar', 'oink', 'bonk', 'oink', 'tonk'} - for x in xrange(1, 6): + for x in range(1, 6): baseline.add(grouptools.join('bor', str(x))) nt.eq_(self.test.names.all, baseline) -- cgit v1.2.3