mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
selftest: make get_loadparm a classmethod
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
9f8786f0ed
commit
18fd2e4ff3
@ -193,7 +193,8 @@ class TestCase(unittest.TestCase):
|
|||||||
samba.set_debug_level(test_debug_level)
|
samba.set_debug_level(test_debug_level)
|
||||||
self.addCleanup(samba.set_debug_level, test_debug_level)
|
self.addCleanup(samba.set_debug_level, test_debug_level)
|
||||||
|
|
||||||
def get_loadparm(self):
|
@classmethod
|
||||||
|
def get_loadparm(cls):
|
||||||
return env_loadparm()
|
return env_loadparm()
|
||||||
|
|
||||||
def get_credentials(self):
|
def get_credentials(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user