From: Joseph Sutton Date: Tue, 29 Aug 2023 23:58:07 +0000 (+1200) Subject: python:tests: Remove unused variables X-Git-Tag: tevent-0.16.0~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fca94cd691ea0391ab64f0c6c6e8a2a35870547;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/dnscmd.py b/python/samba/tests/samba_tool/dnscmd.py index b7f12feacbe..da8ff9a76b6 100644 --- a/python/samba/tests/samba_tool/dnscmd.py +++ b/python/samba/tests/samba_tool/dnscmd.py @@ -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 diff --git a/python/samba/tests/samba_tool/visualize.py b/python/samba/tests/samba_tool/visualize.py index f4a3543b643..21f545b4125 100644 --- a/python/samba/tests/samba_tool/visualize.py +++ b/python/samba/tests/samba_tool/visualize.py @@ -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}")