From: Joseph Sutton Date: Tue, 23 May 2023 23:11:01 +0000 (+1200) Subject: tests/audit_log: Remove unneeded len() call X-Git-Tag: talloc-2.4.1~549 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7ad25a781149f24eb82dc4dee4382ac1cabb2fa;p=thirdparty%2Fsamba.git tests/audit_log: Remove unneeded len() call Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/audit_log_base.py b/python/samba/tests/audit_log_base.py index 8671f72e7b5..9e83e95902b 100644 --- a/python/samba/tests/audit_log_base.py +++ b/python/samba/tests/audit_log_base.py @@ -176,7 +176,7 @@ class AuditLogTestBase(samba.tests.TestCase): # Discard any previously queued messages. def discardMessages(self): self.msg_ctx.loop_once(0.001) - while (len(self.context["messages"]) or + while (self.context["messages"] or self.context["txnMessage"] is not None): self.context["messages"] = []