From: Joseph Sutton Date: Tue, 23 May 2023 23:11:20 +0000 (+1200) Subject: tests/auth_log: Remove unneeded len() call X-Git-Tag: talloc-2.4.1~548 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af9d1a3d9090949a1326d625ce2ebb0fbf2dc152;p=thirdparty%2Fsamba.git tests/auth_log: Remove unneeded len() call Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log_base.py b/python/samba/tests/auth_log_base.py index bb78e2fe7d0..fe83691bbaf 100644 --- a/python/samba/tests/auth_log_base.py +++ b/python/samba/tests/auth_log_base.py @@ -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)