Fix process list tests on windows py3

This commit is contained in:
Daniel A. Wozniak 2019-08-23 05:16:18 +00:00
parent 316ec78ef0
commit bf4d0dd965
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

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