mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix process list tests on windows py3
This commit is contained in:
parent
316ec78ef0
commit
bf4d0dd965
1 changed files with 6 additions and 3 deletions
|
@ -421,15 +421,18 @@ class TestDup2(TestCase):
|
|||
|
||||
class TestProcessList(TestCase):
|
||||
|
||||
def null_target(self):
|
||||
@staticmethod
|
||||
def null_target():
|
||||
pass
|
||||
|
||||
def event_target(self, event):
|
||||
@staticmethod
|
||||
def event_target(event):
|
||||
while True:
|
||||
if event.wait(5):
|
||||
break
|
||||
|
||||
def wait_for_proc(self, proc, timeout=10):
|
||||
@staticmethod
|
||||
def wait_for_proc(proc, timeout=10):
|
||||
start = time.time()
|
||||
while proc.is_alive():
|
||||
if time.time() - start > timeout:
|
||||
|
|
Loading…
Add table
Reference in a new issue