1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

tests/auth_log: Remove unnecessary check

This attribute is always truthy.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2023-05-25 12:22:11 +12:00
committed by Andrew Bartlett
parent 6d68ef23b3
commit a05a9a3e78

View File

@@ -73,10 +73,9 @@ class AuthLogTestBase(samba.tests.TestCase):
@classmethod
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)
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()