1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ldb:test:api_base: simplify prefix selection

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Douglas Bagnall 2024-08-17 20:12:11 +12:00 committed by Andreas Schneider
parent 83f3afaac4
commit 8d97ce958f

View File

@ -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