diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-01 15:39:25 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-01 15:39:25 +0100 |
commit | 2b59a12cc00e0b0f593547b9b56350400f9fdfc8 (patch) | |
tree | 536ed2a19a697385ed9c6e0227698f4879821659 /psutil/tests/test_linux.py | |
parent | 86fc3ee3acb2d2ae0e8186b1ae8a55567417759a (diff) | |
parent | b524439056484e81a17407dc31cfcea1ff81715b (diff) | |
download | psutil-371-temperatures.tar.gz |
merge from master371-temperatures
Diffstat (limited to 'psutil/tests/test_linux.py')
-rwxr-xr-x | psutil/tests/test_linux.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py index 37352ecf..0f0b09c3 100755 --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -1277,6 +1277,11 @@ class TestProcessAgainstStatus(unittest.TestCase): self.assertEqual( self.proc.cpu_affinity(), list(range(min_, max_ + 1))) + def test_cpu_affinity_eligible_cpus(self): + with mock.patch("psutil._pslinux.per_cpu_times") as m: + self.proc._proc._get_eligible_cpus() + assert not m.called + if __name__ == '__main__': run_test_module_by_name(__file__) |