Skip to content

Commit c03435f

Browse files
committed
fixup! Two step shutdown with sigint
1 parent 3dd966e commit c03435f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

osbrain/tests/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import sys
2-
import psutil
3-
import pytest
42

3+
import psutil
54
from psutil import STATUS_DEAD, STATUS_ZOMBIE
5+
6+
import pytest
67
from pytest import mark
78

89
from osbrain import run_agent
@@ -56,7 +57,6 @@ def is_pid_alive(pid):
5657
dead_statuses = [STATUS_ZOMBIE, STATUS_DEAD]
5758
try:
5859
process = psutil.Process(pid)
59-
print('%d is %s', pid, process.status())
6060
return process.status() not in dead_statuses
6161
except psutil.NoSuchProcess:
6262
return False

0 commit comments

Comments
 (0)