test_slot_conflict_rebuild: drop pointless list cast
authorMike Frysinger <vapier@gentoo.org>
Wed, 27 Nov 2013 03:23:58 +0000 (22:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 27 Nov 2013 03:23:58 +0000 (22:23 -0500)
The range() func already returns a list, so need for list().

pym/portage/tests/resolver/test_slot_conflict_rebuild.py

index 0fe8f5dc4854ca51bb5d7b64ba19063d9dc4e9d4..96cc8f1bdc47ef6532a94e2e5cce4d4e08b2eb37 100644 (file)
@@ -142,7 +142,7 @@ class SlotConflictRebuildTestCase(TestCase):
 
                expected_mergelist = ['app-misc/A-1', 'app-misc/B-2']
 
-               for i in list(range(5)):
+               for i in range(5):
                        ebuilds["app-misc/C%sC-1" % i] = {
                                "EAPI": "5",
                                "DEPEND": "app-misc/B:=",