From 20e841b79362a9054027fe29426cb378b1c90be9 Mon Sep 17 00:00:00 2001 From: Jo Sutton Date: Thu, 1 Aug 2024 15:51:03 +1200 Subject: [PATCH] python:tests: Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit assertMatch() returns None, which isn’t very useful. Signed-off-by: Jo Sutton Reviewed-by: Douglas Bagnall --- python/samba/tests/samba_tool/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/tests/samba_tool/group.py b/python/samba/tests/samba_tool/group.py index e7a660c75e1..e8c0960849f 100644 --- a/python/samba/tests/samba_tool/group.py +++ b/python/samba/tests/samba_tool/group.py @@ -332,7 +332,7 @@ class GroupCmdTestCase(SambaToolCmdTest): for groupobj in grouplist: name = str(groupobj.get("dn", idx=0)) - found = self.assertMatch(out, name, "group '%s' not found" % name) + self.assertMatch(out, name, "group '%s' not found" % name) def test_move(self):