From: Frantisek Sumsal Date: Thu, 3 Feb 2022 18:13:06 +0000 (+0100) Subject: test-network: disable 'no-member' warning for the Utilities class X-Git-Tag: v251-rc1~356^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=524cc9d1d8f61635b6f4c3133714a0b166bf9255;p=thirdparty%2Fsystemd.git test-network: disable 'no-member' warning for the Utilities class The warning is correct, since we don't inherit the necessary unittest.TestCase class, but that's on purpose, since the Utilities class is not supposed to be instantiated on its own, but should complement other classes' definitions which do inherit from the unittest.TestCase class. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 01003d2f05c..abbb760457e 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -586,8 +586,9 @@ def restart_networkd(sleep_sec=0, show_logs=True, remove_state_files=True): stop_networkd(show_logs, remove_state_files) start_networkd(sleep_sec) - class Utilities(): + # pylint: disable=no-member + def check_link_exists(self, link): self.assertTrue(link_exists(link))