From: Joseph Sutton Date: Wed, 12 Apr 2023 19:47:39 +0000 (+1200) Subject: python:tests: Remove unused variables X-Git-Tag: talloc-2.4.1~687 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d6e4473409375f0e62dd06597ca983d22b941ca;p=thirdparty%2Fsamba.git python:tests: Remove unused variables Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/samba_tool/user.py b/python/samba/tests/samba_tool/user.py index 28fb79146fa..54df97de645 100644 --- a/python/samba/tests/samba_tool/user.py +++ b/python/samba/tests/samba_tool/user.py @@ -435,8 +435,8 @@ class UserCmdTestCase(SambaToolCmdTest): for userobj in userlist: name = str(userobj.get("samaccountname", idx=0)) - found = self.assertMatch(out, name, - "user '%s' not found" % name) + self.assertMatch(out, name, + "user '%s' not found" % name) def test_list_base_dn(self): @@ -459,8 +459,8 @@ class UserCmdTestCase(SambaToolCmdTest): for userobj in userlist: name = str(userobj.get("samaccountname", idx=0)) - found = self.assertMatch(out, name, - "user '%s' not found" % name) + self.assertMatch(out, name, + "user '%s' not found" % name) def test_list_full_dn(self): (result, out, err) = self.runsubcmd("user", "list", "--full-dn", @@ -481,8 +481,8 @@ class UserCmdTestCase(SambaToolCmdTest): for userobj in userlist: name = str(userobj.get("dn", idx=0)) - found = self.assertMatch(out, name, - "user '%s' not found" % name) + self.assertMatch(out, name, + "user '%s' not found" % name) def test_list_hide_expired(self): expire_username = "expireUser"