From: Joseph Sutton Date: Tue, 23 May 2023 04:45:28 +0000 (+1200) Subject: tests/auth_log: Rename ‘self’ parameter to ‘cls’ X-Git-Tag: talloc-2.4.1~551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1923abe7e4c151300aee78fcbe9cf30c61865ec5;p=thirdparty%2Fsamba.git tests/auth_log: Rename ‘self’ parameter to ‘cls’ This method operates on the class, not on an instance of that class. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log_base.py b/python/samba/tests/auth_log_base.py index 4a4aa81db8a..2a65bc0006d 100644 --- a/python/samba/tests/auth_log_base.py +++ b/python/samba/tests/auth_log_base.py @@ -72,11 +72,11 @@ class AuthLogTestBase(samba.tests.TestCase): cls.connection = None @classmethod - def tearDownClass(self): - if self.msg_handler_and_context: - self.msg_ctx.deregister(self.msg_handler_and_context, - msg_type=MSG_AUTH_LOG) - self.msg_ctx.irpc_remove_name(AUTH_EVENT_NAME) + def tearDownClass(cls): + if cls.msg_handler_and_context: + cls.msg_ctx.deregister(cls.msg_handler_and_context, + msg_type=MSG_AUTH_LOG) + cls.msg_ctx.irpc_remove_name(AUTH_EVENT_NAME) def setUp(self): super(AuthLogTestBase, self).setUp()