diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-24 09:55:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-24 09:55:52 -0800 |
| commit | 7a2572268168e96c8841ca83ab1a89735ec02c3a (patch) | |
| tree | 656a58683c5c48308152b302f1a31c4c82e74106 /psutil/tests | |
| parent | 88beee9e0d169e979a3027bf9e61c59ccc1ad6e3 (diff) | |
| download | psutil-7a2572268168e96c8841ca83ab1a89735ec02c3a.tar.gz | |
#1428 in case of error, show the C syscall which caused it
Diffstat (limited to 'psutil/tests')
| -rwxr-xr-x | psutil/tests/test_system.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 7cc678f0..b0b7e4f0 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -766,7 +766,9 @@ class TestSystemAPIs(unittest.TestCase): ls = psutil.cpu_freq(percpu=True) if TRAVIS and not ls: - return + raise self.skipTest("skipped on Travis") + if FREEBSD and not ls: + raise self.skipTest("returns empty list on FreeBSD") assert ls, ls check_ls([psutil.cpu_freq(percpu=False)]) |
