diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-01-04 16:56:43 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-02-08 12:29:33 -0800 |
commit | 7fcbeecad4827710ec1ad6d7bf877470570fe153 (patch) | |
tree | 208530ed6ff4d79688491f0137f8b1bf257ae851 /unittests | |
parent | f41158915be47daae8bcf4c7afd54bec577f9454 (diff) |
python: use six.moves.range
This is xrange on python 2.x and range on 3.x
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/summary_common_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |