Skip to content

Process.status() on linux is unable to recognize "parked" and "idle" statuses #1309

Closed
@giampaolo

Description

The failing test:

======================================================================
FAIL: test_contracts.TestFetchAllProcesses.test_fetch_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/giampaolo/svn/psutil/psutil/tests/test_contracts.py", line 365, in test_fetch_all
    meth(ret, p)
  File "/home/giampaolo/svn/psutil/psutil/tests/test_contracts.py", line 449, in status
    self.assertNotEqual(ret, '?')  # XXX
AssertionError: '?' == '?'

The expected result should be either psutil.STATUS_IDLE or psutil.STATUS_PARKED (still not exposed).

"parked" status was added around 10 months ago:
torvalds/linux@8ef9925
Not sure about "idle".

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions