commit | 935c19e4d14ab249cace7c3fbd404a1f58e744d0 | [log] [tgz] |
---|---|---|
author | sonu.kumar <sonu.kumar@nectechnologies.in> | Tue Sep 08 09:22:19 2015 +0530 |
committer | sonu.kumar <sonu.kumar@nectechnologies.in> | Tue Sep 08 09:24:02 2015 +0530 |
tree | bf10603ea4d51f610ef3b42edc0cf9d4c1c67ca3 | |
parent | dd28baf8050cfbaa402b932fd53448050d96f4c8 [diff] |
Replaces xrange() with range() for py 2/3 compatibility This patch replaces xrange() in python 2 to range() to make it compatible with python 3. Change-Id: Ic257ff77475a5ea8d2b4f00a00d710e296fc3602
diff --git a/manila_tempest_tests/tests/api/admin/test_share_types.py b/manila_tempest_tests/tests/api/admin/test_share_types.py index 465d8d5..2488317 100644 --- a/manila_tempest_tests/tests/api/admin/test_share_types.py +++ b/manila_tempest_tests/tests/api/admin/test_share_types.py
@@ -83,7 +83,7 @@ # Check that backwards compatibility didn't break vts = st_list["volume_types"] self.assertEqual(len(sts), len(vts)) - for i in xrange(len(sts)): + for i in range(len(sts)): self.assertDictMatch(sts[i], vts[i]) @test.attr(type=["gate", "smoke", ])