From: Joseph Sutton Date: Tue, 29 Aug 2023 08:48:58 +0000 (+1200) Subject: lib:ldb:tests: Remove explicit comparison with False X-Git-Tag: tevent-0.16.0~785 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4ab1de4e411b057f34dcc98544501057bed74ca;p=thirdparty%2Fsamba.git lib:ldb:tests: Remove explicit comparison with False Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index 6c9ee559e21..043b7213a49 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -1724,7 +1724,7 @@ class SearchTests(LdbBaseTest): if hasattr(self, 'disallowDNFilter') and \ hasattr(self, 'IDX') and \ (hasattr(self, 'IDXGUID') or - ((hasattr(self, 'IDXONE') == False and hasattr(self, 'IDX')))): + ((not hasattr(self, 'IDXONE') and hasattr(self, 'IDX')))): self.assertEqual(len(res11), 0) else: self.assertEqual(len(res11), 1)