From 8d97ce958fe8328d2f3c365d73fc440142c353bb Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sat, 17 Aug 2024 20:12:11 +1200 Subject: [PATCH] ldb:test:api_base: simplify prefix selection Signed-off-by: Douglas Bagnall Reviewed-by: Andreas Schneider --- lib/ldb/tests/python/api_base.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.47.2