selftest: enable py3 for samba.tests.kcc.graph
[metze/samba/wip.git] / python / samba / tests / kcc / graph.py
index dec861a9de579baad4239148a44836559e94cd05..31db853a40fb7fb5cd7045dd6189c71db18d11a6 100644 (file)
@@ -53,8 +53,8 @@ class GraphFunctionTests(samba.tests.TestCase):
                 ([0xff] * 84, 84 * 8),
                 ([0xaa] * 84, 84 * 4),
                 ([0x03, 0x33] * 42, 42 * 6),
-                (range(7) * 12, 12 * 9),
-                (range(4) * 21, 21 * 4)):
+                (list(range(7)) * 12, 12 * 9),
+                (list(range(4)) * 21, 21 * 4)):
             self.assertEquals(total_schedule(schedule), total)
 
     def test_convert_schedule_to_repltimes(self):
@@ -63,7 +63,7 @@ class GraphFunctionTests(samba.tests.TestCase):
                 (None, [0x11] * 84),
                 ([0x06] * 168, [0x66] * 84),
                 ([0x03, 0xa] * 84, [0x3a] * 84),
-                (range(7) * 24,
+                (list(range(7)) * 24,
                  [0x01, 0x23, 0x45, 0x60, 0x12, 0x34, 0x56] * 12)):
             schedule = ntdsconn_schedule(ntdsconn_times)
             self.assertEquals(convert_schedule_to_repltimes(schedule),