summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2018-07-27 12:38:55 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-08-17 02:58:27 +0200
commit30e6e04c4c0dd9ed4277f88006f2d59247e86590 (patch)
tree3c79ee73b9502db9ecc12eab29303329273dce65 /source4
parent3a050542688bc50a0cef463ff468014218ab919f (diff)
downloadsamba-30e6e04c4c0dd9ed4277f88006f2d59247e86590.tar.gz
Fix PEP8 warning F841 local variable 'blah' is assigned to but never used
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/tests/python/password_settings.py1
-rw-r--r--source4/torture/drs/python/link_conflicts.py12
2 files changed, 6 insertions, 7 deletions
diff --git a/source4/dsdb/tests/python/password_settings.py b/source4/dsdb/tests/python/password_settings.py
index 6da33f84ce7..f950a1d50e7 100644
--- a/source4/dsdb/tests/python/password_settings.py
+++ b/source4/dsdb/tests/python/password_settings.py
@@ -842,7 +842,6 @@ unicodePwd:: %s
self.set_domain_pwdHistoryLength("0")
user = self.add_user("testuser")
- initial_pwd = user.get_password()
self.assert_password_valid(user, "NewPwd12#")
# we can set the exact same password again because there's no history
self.assert_password_valid(user, "NewPwd12#")
diff --git a/source4/torture/drs/python/link_conflicts.py b/source4/torture/drs/python/link_conflicts.py
index 31ebc30fc44..0759b1ef1a7 100644
--- a/source4/torture/drs/python/link_conflicts.py
+++ b/source4/torture/drs/python/link_conflicts.py
@@ -225,7 +225,7 @@ class DrsReplicaLinkConflictTestCase(drs_base.DrsBaseTestCase):
"""
# create unique objects for the link
target_ou = self.unique_dn("OU=target")
- target_guid = self.add_object(self.ldb_dc1, target_ou)
+ self.add_object(self.ldb_dc1, target_ou)
src_ou = self.unique_dn("OU=src")
src_guid = self.add_object(self.ldb_dc1, src_ou)
self.sync_DCs()
@@ -312,7 +312,7 @@ class DrsReplicaLinkConflictTestCase(drs_base.DrsBaseTestCase):
src_dn = self.unique_dn("CN=src")
src_guid = self.add_object(self.ldb_dc1, src_dn, objectclass="group")
target_dn = self.unique_dn("CN=target")
- target_guid = self.add_object(self.ldb_dc1, target_dn, objectclass="user")
+ self.add_object(self.ldb_dc1, target_dn, objectclass="user")
self.sync_DCs()
# link the src group to the same target user separately on each DC
@@ -392,7 +392,7 @@ class DrsReplicaLinkConflictTestCase(drs_base.DrsBaseTestCase):
# Add the link objects
target_dn = self.unique_dn("CN=target")
- target_guid = self.add_object(self.ldb_dc1, target_dn, objectclass="user")
+ self.add_object(self.ldb_dc1, target_dn, objectclass="user")
src_dn = self.unique_dn("CN=src")
src_guid = self.add_object(self.ldb_dc1, src_dn, objectclass="group")
self.sync_DCs()
@@ -490,7 +490,7 @@ class DrsReplicaLinkConflictTestCase(drs_base.DrsBaseTestCase):
src_dn = self.unique_dn("CN=src")
src_guid = self.add_object(self.ldb_dc1, src_dn, objectclass="group")
target_dn = self.unique_dn("CN=target")
- target1_guid = self.add_object(self.ldb_dc1, target_dn, objectclass="user")
+ self.add_object(self.ldb_dc1, target_dn, objectclass="user")
self.sync_DCs()
# add the same link on both DCs
@@ -699,9 +699,9 @@ class DrsReplicaLinkConflictTestCase(drs_base.DrsBaseTestCase):
"""
# create some objects and add a link
src_ou = self.unique_dn("OU=src")
- src_guid = self.add_object(self.ldb_dc1, src_ou)
+ self.add_object(self.ldb_dc1, src_ou)
target1_ou = self.unique_dn("OU=target1")
- target1_guid = self.add_object(self.ldb_dc1, target1_ou)
+ self.add_object(self.ldb_dc1, target1_ou)
self.add_link_attr(self.ldb_dc1, src_ou, "managedBy", target1_ou)
# get the link info via replication