Index: psutil/tests/test_posix.py --- psutil/tests/test_posix.py.orig +++ psutil/tests/test_posix.py @@ -22,6 +22,7 @@ from psutil import LINUX from psutil import MACOS from psutil import OPENBSD from psutil import POSIX +from psutil import SECBSD from psutil import SUNOS from psutil.tests import CI_TESTING from psutil.tests import HAS_NET_IO_COUNTERS @@ -307,7 +308,7 @@ class TestSystemAPIs(PsutilTestCase): pids_psutil = psutil.pids() # on MACOS and OPENBSD ps doesn't show pid 0 - if MACOS or OPENBSD and 0 not in pids_ps: + if MACOS or OPENBSD or SECBSD and 0 not in pids_ps: pids_ps.insert(0, 0) # There will often be one more process in pids_ps for ps itself