mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing test_vault for python3.
This commit is contained in:
parent
90adb38b5d
commit
931ec6154a
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ class VaultTestCase(ModuleCase, ShellCase):
|
|||
TearDown vault container
|
||||
'''
|
||||
def count_tests(funcobj):
|
||||
return inspect.ismethod(funcobj) and funcobj.__name__.startswith('test_')
|
||||
return inspect.ismethod(funcobj) or \
|
||||
inspect.isfunction(funcobj) and \
|
||||
funcobj.__name__.startswith('test_')
|
||||
numtests = len(inspect.getmembers(VaultTestCase, predicate=count_tests))
|
||||
if VaultTestCase.count >= numtests:
|
||||
self.run_state('docker_container.stopped', name='vault')
|
||||
|
|
Loading…
Add table
Reference in a new issue