mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
1923abe7e4
commit
40425672fe
@@ -128,11 +128,11 @@ class AuthLogTestBase(samba.tests.TestCase):
|
||||
|
||||
# Discard any previously queued messages.
|
||||
@classmethod
|
||||
def discardMessages(self):
|
||||
self.msg_ctx.loop_once(0.001)
|
||||
while len(self.context["messages"]):
|
||||
self.context["messages"] = []
|
||||
self.msg_ctx.loop_once(0.001)
|
||||
def discardMessages(cls):
|
||||
cls.msg_ctx.loop_once(0.001)
|
||||
while len(cls.context["messages"]):
|
||||
cls.context["messages"] = []
|
||||
cls.msg_ctx.loop_once(0.001)
|
||||
|
||||
# Remove any NETLOGON authentication messages
|
||||
# NETLOGON is only performed once per session, so to avoid ordering
|
||||
|
||||
Reference in New Issue
Block a user