From f9073c24de64fb1e026797594040f0912f4fd8aa Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sun, 30 Oct 2022 20:47:04 +0100 Subject: [PATCH] test-network: suppress a couple of minor pylint complaints --- test/test-network/systemd-networkd-tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 4e1a9a9937..87710ef3fb 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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]