mirror of
https://github.com/samba-team/samba.git
synced 2025-12-23 00:23:53 +03:00
python:tests: Remove unused imports
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
9f78cc3b11
commit
9f5667032c
@@ -19,8 +19,6 @@ import os
|
||||
import ldb
|
||||
import re
|
||||
|
||||
from samba.auth import system_session
|
||||
from samba.samdb import SamDB
|
||||
from samba.ndr import ndr_unpack, ndr_pack
|
||||
from samba.dcerpc import dnsp
|
||||
from samba.tests.samba_tool.base import SambaToolCmdTest
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
import os
|
||||
import ldb
|
||||
from samba.tests.samba_tool.base import SambaToolCmdTest
|
||||
import re
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#
|
||||
|
||||
import os
|
||||
import time
|
||||
import ldb
|
||||
from samba.tests.samba_tool.base import SambaToolCmdTest
|
||||
from samba.tests import env_loadparm
|
||||
import random
|
||||
|
||||
@@ -24,7 +24,6 @@ We don't test samba-tool visualize reps here because repsTo and
|
||||
repsFrom are not replicated, and there are no actual remote servers to
|
||||
query.
|
||||
"""
|
||||
import samba
|
||||
import os
|
||||
import tempfile
|
||||
import re
|
||||
|
||||
@@ -22,9 +22,8 @@
|
||||
import samba.tests
|
||||
import os
|
||||
import sys
|
||||
from samba.net import Net, LIBNET_JOIN_AUTOMATIC
|
||||
from samba.net import Net
|
||||
from samba.credentials import DONT_USE_KERBEROS
|
||||
from samba import NTSTATUSError, ntstatus
|
||||
from samba.dcerpc import misc, drsuapi, samr, unixinfo, dnsserver
|
||||
from samba import auth, gensec
|
||||
from samba.samdb import SamDB
|
||||
@@ -205,7 +204,7 @@ class SegfaultTests(samba.tests.TestCase):
|
||||
@segfault_detector
|
||||
def test_dns_record(self):
|
||||
from samba.dnsserver import TXTRecord
|
||||
from samba.dcerpc import dnsp, dnsserver
|
||||
from samba.dcerpc import dnsp
|
||||
# there are many others here
|
||||
rec = TXTRecord(["a", "b", "c"])
|
||||
rec.wType = dnsp.DNS_TYPE_A
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import sys
|
||||
import samba
|
||||
import os
|
||||
import binascii
|
||||
|
||||
Reference in New Issue
Block a user