From: Noel Power Date: Fri, 15 Jun 2018 13:29:42 +0000 (+0100) Subject: s4/torture/drs/python: long is not used in py3 X-Git-Tag: ldb-1.5.0~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c9ce41e91c5e68aa116e5b5b2bae97353f2fbc;p=thirdparty%2Fsamba.git s4/torture/drs/python: long is not used in py3 Signed-off-by: Noel Power Reviewed-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source4/torture/drs/python/drs_base.py b/source4/torture/drs/python/drs_base.py index 91b76b3c6aa..6405c990822 100644 --- a/source4/torture/drs/python/drs_base.py +++ b/source4/torture/drs/python/drs_base.py @@ -184,7 +184,7 @@ class DrsBaseTestCase(SambaToolCmdTest): def _get_highest_hwm_utdv(self, ldb_conn): res = ldb_conn.search("", scope=ldb.SCOPE_BASE, attrs=["highestCommittedUSN"]) hwm = drsuapi.DsReplicaHighWaterMark() - hwm.tmp_highest_usn = long(res[0]["highestCommittedUSN"][0]) + hwm.tmp_highest_usn = int(res[0]["highestCommittedUSN"][0]) hwm.reserved_usn = 0 hwm.highest_usn = hwm.tmp_highest_usn