xrange function is gone in Python3 and instead range is xrange by default. Also it doesnt seem to be important to have xrange used in tests on Python2. Signed-off-by: Robert Kuska <rkuska@xxxxxxxxxx> --- sepolgen/tests/test_access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sepolgen/tests/test_access.py b/sepolgen/tests/test_access.py index 631209c..888c011 100644 --- a/sepolgen/tests/test_access.py +++ b/sepolgen/tests/test_access.py @@ -165,7 +165,7 @@ class TestUtilFunctions(unittest.TestCase): status = [False] * 8 for av in access.avrule_to_access_vectors(rule): self.assertEqual(av.perms, refpolicy.IdSet(["read", "write"])) - for i in xrange(len(comps)): + for i in range(len(comps)): if comps[i][0] == av.src_type and \ comps[i][1] == av.tgt_type and \ comps[i][2] == av.obj_class: @@ -208,7 +208,7 @@ class TestAccessVectorSet(unittest.TestCase): status = [False] * 8 for av in self.s: self.assertEqual(av.perms, refpolicy.IdSet(["read", "write"])) - for i in xrange(len(comps)): + for i in range(len(comps)): if comps[i][0] == av.src_type and \ comps[i][1] == av.tgt_type and \ comps[i][2] == av.obj_class: -- 2.4.3 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.