summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-05-23 16:45:28 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-29 22:32:28 +0000
commit1923abe7e4c151300aee78fcbe9cf30c61865ec5 (patch)
treeeef184e5eb7fb86449fa600fabb2cd37083d03dd /python
parent1c17d56cc53cc5b4eaeff87ccbea68fb07b7caf1 (diff)
downloadsamba-1923abe7e4c151300aee78fcbe9cf30c61865ec5.tar.gz
samba-1923abe7e4c151300aee78fcbe9cf30c61865ec5.tar.bz2
samba-1923abe7e4c151300aee78fcbe9cf30c61865ec5.zip
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 <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/auth_log_base.py10
1 files changed, 5 insertions, 5 deletions
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()