summaryrefslogtreecommitdiff
path: root/python/samba/tests
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 /python/samba/tests
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 'python/samba/tests')
-rw-r--r--python/samba/tests/samba_tool/passwordsettings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/samba/tests/samba_tool/passwordsettings.py b/python/samba/tests/samba_tool/passwordsettings.py
index 89abfa019d8..353756c4931 100644
--- a/python/samba/tests/samba_tool/passwordsettings.py
+++ b/python/samba/tests/samba_tool/passwordsettings.py
@@ -224,7 +224,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
"""Tests we can delete a PSO using the samba-tool"""
pso_name = "test-delete-PSO"
- pso_settings = self._create_pso(pso_name)
+ self._create_pso(pso_name)
# check we can successfully delete the PSO
(result, out, err) = self.runsublevelcmd("domain", ("passwordsettings",
@@ -239,7 +239,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
# check the object no longer exists in the DB
try:
- res = self.ldb.search(dn, scope=ldb.SCOPE_BASE, attrs=['name'])
+ self.ldb.search(dn, scope=ldb.SCOPE_BASE, attrs=['name'])
self.fail("PSO shouldn't exist")
except ldb.LdbError as e:
(enum, estr) = e.args
@@ -346,7 +346,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
# create a dummy PSO and a non-admin user
pso_name = "test-unpriv-PSO"
- test_pso = self._create_pso(pso_name)
+ self._create_pso(pso_name)
user = TestUser("test-unpriv-user", self.ldb)
self.obj_cleanup.append(user.dn)
unpriv_auth = "-U%s%%%s" %(user.name, user.get_password())