]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:ldb:tests: Remove explicit comparison with False
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 29 Aug 2023 08:48:58 +0000 (20:48 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:29 +0000 (02:15 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py

index 6c9ee559e212b95d9a918bbb068967e564dd2ed2..043b7213a49e9eb427eb719654138b45248ed3fc 100755 (executable)
@@ -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)