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:
committed by
Andreas Schneider
parent
8d97ce958f
commit
b08427d086
@ -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
|
||||
|
Reference in New Issue
Block a user