diff options
| author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-05-24 11:11:01 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2023-05-29 22:32:28 +0000 |
| commit | a7ad25a781149f24eb82dc4dee4382ac1cabb2fa (patch) | |
| tree | aaf1150dcbc42e613fcdef72dd200361194c7126 /python/samba | |
| parent | 40425672fe992fe52b2529a5a80b3fe1db0bfbc0 (diff) | |
| download | samba-a7ad25a781149f24eb82dc4dee4382ac1cabb2fa.tar.gz samba-a7ad25a781149f24eb82dc4dee4382ac1cabb2fa.tar.bz2 samba-a7ad25a781149f24eb82dc4dee4382ac1cabb2fa.zip | |
tests/audit_log: Remove unneeded len() call
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba')
| -rw-r--r-- | python/samba/tests/audit_log_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"] = [] |
