1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

ldb:test:api_base: make flags method a class method

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Douglas Bagnall
2024-08-17 20:49:23 +12:00
committed by Andreas Schneider
parent 8d97ce958f
commit b08427d086

View File

@ -35,8 +35,9 @@ class LdbBaseTest(TestCase):
def url(self):
return self.prefix + self.filename
def flags(self):
if self.prefix == MDB_PREFIX:
@classmethod
def flags(cls):
if cls.prefix == MDB_PREFIX:
return ldb.FLG_NOSYNC
else:
return 0