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:
parent
83f3afaac4
commit
8d97ce958f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user