From b08427d086ce3d4e9fd1bda9ed69cd367ee18904 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sat, 17 Aug 2024 20:49:23 +1200 Subject: [PATCH] ldb:test:api_base: make flags method a class method Signed-off-by: Douglas Bagnall Reviewed-by: Andreas Schneider --- lib/ldb/tests/python/api_base.py | 5 +++-- 1 file 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 -- 2.47.2