]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Remove unused variable
authorJo Sutton <josutton@catalyst.net.nz>
Thu, 1 Aug 2024 03:51:03 +0000 (15:51 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Sun, 4 Aug 2024 00:32:39 +0000 (00:32 +0000)
assertMatch() returns None, which isn’t very useful.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/samba_tool/group.py

index e7a660c75e1c2527a51aa16b11010ff92d1d456a..e8c0960849f78f93bc8cf4b63623c1b2d59ec543 100644 (file)
@@ -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):