From: Douglas Bagnall Date: Thu, 4 Oct 2018 02:30:21 +0000 (+1300) Subject: tests/python/ldap: use int instead of long for time_t X-Git-Tag: tdb-1.3.17~1363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131f98ed1601c925b5a689606e55b078d7b4e9e2;p=thirdparty%2Fsamba.git tests/python/ldap: use int instead of long for time_t Python int is at least a C long; Python long disappears in Py3. Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power Autobuild-User(master): Douglas Bagnall Autobuild-Date(master): Wed Oct 10 09:28:20 CEST 2018 on sn-devel-144 --- diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py index 37ccfb4edc7..6a5e34be72b 100755 --- a/source4/dsdb/tests/python/ldap.py +++ b/source4/dsdb/tests/python/ldap.py @@ -1675,8 +1675,8 @@ objectGUID: bd3480c9-58af-4cd8-92df-bc4a18b6e44d "objectclass": "container", "uSNCreated": "1", "uSNChanged": "1", - "whenCreated": timestring(long(time.time())), - "whenChanged": timestring(long(time.time()))}) + "whenCreated": timestring(int(time.time())), + "whenChanged": timestring(int(time.time()))}) res = ldb.search("cn=ldaptestcontainer," + self.base_dn, scope=SCOPE_BASE,