]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: disable 'no-member' warning for the Utilities class
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Feb 2022 18:13:06 +0000 (19:13 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Feb 2022 18:13:06 +0000 (19:13 +0100)
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.

test/test-network/systemd-networkd-tests.py

index 01003d2f05c70c6fea067d223f3bb616e2470f70..abbb760457e99738d8cd0dbe7de73f21fe2bf71e 100755 (executable)
@@ -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))