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_system.py | |
parent | 86fc3ee3acb2d2ae0e8186b1ae8a55567417759a (diff) | |
parent | b524439056484e81a17407dc31cfcea1ff81715b (diff) | |
download | psutil-371-temperatures.tar.gz |
merge from master371-temperatures
Diffstat (limited to 'psutil/tests/test_system.py')
-rwxr-xr-x | psutil/tests/test_system.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 31d4c3fb..79ae6bba 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -112,7 +112,7 @@ class TestSystemAPIs(unittest.TestCase): gone, alive = test(procs, callback) self.assertIn(sproc3.pid, [x.pid for x in gone]) if POSIX: - self.assertEqual(gone.pop().returncode, signal.SIGTERM) + self.assertEqual(gone.pop().returncode, -signal.SIGTERM) else: self.assertEqual(gone.pop().returncode, 1) self.assertEqual(l, [sproc3.pid]) @@ -710,9 +710,10 @@ class TestSystemAPIs(unittest.TestCase): self.assertGreaterEqual(value, 0) ls = psutil.cpu_freq(percpu=True) - if not TRAVIS: - assert ls, ls + if TRAVIS and not ls: + return + assert ls, ls check_ls([psutil.cpu_freq(percpu=False)]) if LINUX: |