]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: suppress a couple of minor pylint complaints 25190/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 30 Oct 2022 19:47:04 +0000 (20:47 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 30 Oct 2022 19:52:24 +0000 (20:52 +0100)
test/test-network/systemd-networkd-tests.py

index 4e1a9a993710c79194c5a42c61a7f012cc268047..87710ef3fb6651f7084a26939d819b67ea0949f2 100755 (executable)
@@ -97,6 +97,7 @@ def mkdir_p(path):
 def touch(path):
     pathlib.Path(path).touch()
 
+# pylint: disable=R1710
 def check_output(*command, **kwargs):
     # This checks the result and returns stdout (and stderr) on success.
     command = command[0].split() + list(command[1:])
@@ -522,6 +523,7 @@ def flush_l2tp_tunnels():
             print(f'Cannot remove L2TP tunnel {tid}, ignoring.')
 
 def save_timezone():
+    # pylint: disable=global-statement
     global saved_timezone
     r = run(*timedatectl_cmd, 'show', '--value', '--property', 'Timezone', env=env)
     if r.returncode == 0:
@@ -874,7 +876,7 @@ class Utilities():
             args += ['--ipv6']
         try:
             check_output(*args, env=wait_online_env)
-        except subprocess.CalledProcessError as e:
+        except subprocess.CalledProcessError:
             # show detailed status on failure
             for link in links_with_operstate:
                 name = link.split(':')[0]