]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Remove unused variables
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 29 Aug 2023 23:58:07 +0000 (11:58 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2023 21:35:29 +0000 (21:35 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/dnscmd.py
python/samba/tests/samba_tool/visualize.py

index b7f12feacbe3cdf78207ed79e3f414dded895c26..da8ff9a76b6aa095eaa7b896208cd74f989df8f6 100644 (file)
@@ -206,7 +206,7 @@ class DnsCmdTestCase(SambaToolCmdTest):
             self.assertTrue("testrecord" in out and record_str in out,
                             "Query for a record which had DNS_RANK_NONE"
                             "succeeded but produced no resulting records.")
-        except AssertionError as e:
+        except AssertionError:
             # Windows produces no resulting records
             pass
 
index f4a3543b643aa4eac90c6c2aa1268f6e231ed41e..21f545b412549590e16737ca42f08c5f43c39635 100644 (file)
@@ -187,7 +187,7 @@ class SambaToolVisualizeLdif(SambaToolCmdTest):
                                                       '-H', self.dburl,
                                                       '-S',
                                                       opt)
-                except SystemExit as e:
+                except SystemExit:
                     # optparse makes us do this
                     self.fail(f"optparse rejects {env}, {opt}, {is_colour}")