From: Douglas Bagnall Date: Thu, 11 Oct 2018 04:06:32 +0000 (+1300) Subject: s4/dsdb/pytest/ad_dc_medley: do not use xrange X-Git-Tag: tdb-1.3.17~1157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d121c68a4b27314f8eb4ed1da7ed24f72cd8e814;p=thirdparty%2Fsamba.git s4/dsdb/pytest/ad_dc_medley: do not use xrange Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/source4/dsdb/tests/python/ad_dc_medley_performance.py b/source4/dsdb/tests/python/ad_dc_medley_performance.py index 1101ca0e160..0636210d1e3 100644 --- a/source4/dsdb/tests/python/ad_dc_medley_performance.py +++ b/source4/dsdb/tests/python/ad_dc_medley_performance.py @@ -422,7 +422,7 @@ class UserTests(samba.tests.TestCase): lines = ["dn: CN=g%d,%s" % (g, self.ou_groups), "objectclass: group"] - for i in xrange(self.state.next_user_id): + for i in range(self.state.next_user_id): if random.random() <= link_chance: lines.append("member: cn=u%d,%s" % (i, self.ou_users)) self.state.active_links.add((i, g))