From: Douglas Bagnall Date: Sat, 17 Aug 2024 08:12:11 +0000 (+1200) Subject: ldb:test:api_base: simplify prefix selection X-Git-Tag: tdb-1.4.13~1165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d97ce958fe8328d2f3c365d73fc440142c353bb;p=thirdparty%2Fsamba.git ldb:test:api_base: simplify prefix selection Signed-off-by: Douglas Bagnall Reviewed-by: Andreas Schneider --- diff --git a/lib/ldb/tests/python/api_base.py b/lib/ldb/tests/python/api_base.py index 23021370827..d05224cdcae 100644 --- a/lib/ldb/tests/python/api_base.py +++ b/lib/ldb/tests/python/api_base.py @@ -30,13 +30,7 @@ def tempdir(): class LdbBaseTest(TestCase): - def setUp(self): - super().setUp() - try: - if self.prefix is None: - self.prefix = TDB_PREFIX - except AttributeError: - self.prefix = TDB_PREFIX + prefix = TDB_PREFIX def url(self): return self.prefix + self.filename