]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/auth_log: Remove unneeded len() call
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 May 2023 23:11:20 +0000 (11:11 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 May 2023 22:32:28 +0000 (22:32 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_base.py

index bb78e2fe7d019edb5e3b0d3b5721cb60aa9e7eda..fe83691bbafc923f286491dd3d59add3cdf4c120 100644 (file)
@@ -130,7 +130,7 @@ class AuthLogTestBase(samba.tests.TestCase):
     @classmethod
     def discardMessages(cls):
         cls.msg_ctx.loop_once(0.001)
-        while len(cls.context["messages"]):
+        while cls.context["messages"]:
             cls.context["messages"] = []
             cls.msg_ctx.loop_once(0.001)