diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2024-08-17 20:49:23 +1200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2024-09-24 09:14:38 +0000 |
| commit | b08427d086ce3d4e9fd1bda9ed69cd367ee18904 (patch) | |
| tree | 73023227e98f657362aa1560ee96f1bc97eacf10 /lib/ldb/tests/python/api_base.py | |
| parent | 8d97ce958fe8328d2f3c365d73fc440142c353bb (diff) | |
| download | samba-b08427d086ce3d4e9fd1bda9ed69cd367ee18904.tar.gz samba-b08427d086ce3d4e9fd1bda9ed69cd367ee18904.tar.bz2 samba-b08427d086ce3d4e9fd1bda9ed69cd367ee18904.zip | |
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>
Diffstat (limited to 'lib/ldb/tests/python/api_base.py')
| -rw-r--r-- | lib/ldb/tests/python/api_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ldb/tests/python/api_base.py b/lib/ldb/tests/python/api_base.py index d05224cdcae..8c8d15a7ef4 100644 --- a/lib/ldb/tests/python/api_base.py +++ b/lib/ldb/tests/python/api_base.py @@ -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 |
