1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

lib:ldb:tests: Remove explicit comparison with False

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-29 20:48:58 +12:00 committed by Andrew Bartlett
parent 84dc7129ea
commit e4ab1de4e4

View File

@ -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)