You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
___________________________ TestSystemAPIs.test_pids ___________________________
self = <psutil.tests.test_posix.TestSystemAPIs testMethod=test_pids>
@retry_on_failure()
def test_pids(self):
# Note: this test might fail if the OS is starting/killing
# other processes in the meantime
> pids_ps = sorted(ps("pid"))
psutil/tests/test_posix.py:306:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fmt = 'pid', pid = None
def ps(fmt, pid=None):
"""
Wrapper for calling the ps command with a little bit of cross-platform
support for a narrow range of features.
"""
cmd = ['ps']
if LINUX:
cmd.append('--no-headers')
if pid is not None:
cmd.extend(['-p', str(pid)])
else:
if SUNOS or AIX:
cmd.append('-A')
else:
cmd.append('ax')
if SUNOS:
fmt_map = set(('command', 'comm', 'start', 'stime'))
> fmt = fmt_map.get(fmt, fmt)
E AttributeError: 'set' object has no attribute 'get'
psutil/tests/test_posix.py:67: AttributeError
The text was updated successfully, but these errors were encountered:
Summary
Description
The text was updated successfully, but these errors were encountered: