diff --git a/source4/dsdb/tests/python/ad_dc_medley_performance.py b/source4/dsdb/tests/python/ad_dc_medley_performance.py index 380ac0391e4..0a5641126be 100644 --- a/source4/dsdb/tests/python/ad_dc_medley_performance.py +++ b/source4/dsdb/tests/python/ad_dc_medley_performance.py @@ -35,8 +35,8 @@ except ImportError: from samba.samdb import SamDB from samba.auth import system_session from ldb import Message, MessageElement, Dn, LdbError -from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE -from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL +from ldb import FLAG_MOD_ADD, FLAG_MOD_DELETE +from ldb import SCOPE_BASE, SCOPE_SUBTREE from ldb import ERR_NO_SUCH_OBJECT parser = optparse.OptionParser("ad_dc_medley_performance.py [options] ") diff --git a/source4/dsdb/tests/python/ad_dc_performance.py b/source4/dsdb/tests/python/ad_dc_performance.py index 96229bb14af..0f69d8e8efe 100644 --- a/source4/dsdb/tests/python/ad_dc_performance.py +++ b/source4/dsdb/tests/python/ad_dc_performance.py @@ -34,8 +34,8 @@ except ImportError: from samba.samdb import SamDB from samba.auth import system_session from ldb import Message, MessageElement, Dn, LdbError -from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE -from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL +from ldb import FLAG_MOD_ADD, FLAG_MOD_DELETE +from ldb import SCOPE_SUBTREE parser = optparse.OptionParser("ad_dc_performance.py [options] ") sambaopts = options.SambaOptions(parser) diff --git a/source4/dsdb/tests/python/ad_dc_search_performance.py b/source4/dsdb/tests/python/ad_dc_search_performance.py index 44e468097d8..ef0e89eed86 100644 --- a/source4/dsdb/tests/python/ad_dc_search_performance.py +++ b/source4/dsdb/tests/python/ad_dc_search_performance.py @@ -9,13 +9,9 @@ import os import samba import samba.getopt as options import random -import tempfile -import shutil import time import itertools -from samba.netcmd.main import cmd_sambatool - # We try to use the test infrastructure of Samba 4.3+, but if it # doesn't work, we are probably in a back-ported patch and trying to # run on 4.1 or something. @@ -35,8 +31,8 @@ except ImportError: from samba.samdb import SamDB from samba.auth import system_session from ldb import Message, MessageElement, Dn, LdbError -from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE -from ldb import SCOPE_BASE, SCOPE_SUBTREE, SCOPE_ONELEVEL +from ldb import FLAG_MOD_ADD +from ldb import SCOPE_SUBTREE parser = optparse.OptionParser("ad_dc_search_performance.py [options] ") sambaopts = options.SambaOptions(parser)