Skip to content

FreeBSD erroneous Process.cpu_num() #1069

Closed
@giampaolo

Description

======================================================================
FAIL: psutil.tests.test_contracts.TestFetchAllProcesses.test_fetch_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/psutil/psutil/tests/test_contracts.py", line 340, in test_fetch_all
    meth(ret, p)
  File "/vagrant/psutil/psutil/tests/test_contracts.py", line 474, in cpu_num
    self.assertIn(ret, list(range(psutil.cpu_count())))
AssertionError: 255 not found in [0, 1]

This happens for [intr] process (with PID 12).

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions