diff --git a/src/tests/test_process.py b/src/tests/test_process.py index fc49be20..b782554a 100755 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -76,6 +76,13 @@ class TestProcessProto(unittest.TestCase): except psutil.TimeoutExpired: print('#####_stop_process method condition--##') try: + gone, alive = psutil.wait_procs(cls.process, timeout = 3, + callback = None) + for p in alive: + p.kill() + print('***********************') + print('tearDownClass are successfully killed') + print('***********************') print('cls.process PID -{}'.format(cls.process.pid)) except: print('cls.process -{}'.format(cls.process))