diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-01-24 17:03:12 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-01-24 17:03:12 +0100 |
commit | de07c1c88c8650dd1c5db9fecfa79d93e247e9fa (patch) | |
tree | 6b0bfe32d1edbccc9b96cd8800fa576b0e8636bc | |
parent | f61e0024d73bf8a65deb44225bcd197daee21a66 (diff) | |
download | psutil-de07c1c88c8650dd1c5db9fecfa79d93e247e9fa.tar.gz |
fix test; add debug print for failing test on travis
-rw-r--r-- | psutil/__init__.py | 3 | ||||
-rwxr-xr-x | psutil/tests/test_misc.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/psutil/__init__.py b/psutil/__init__.py index d0e018e2..97f1df97 100644 --- a/psutil/__init__.py +++ b/psutil/__init__.py @@ -1876,6 +1876,9 @@ if hasattr(_psplatform, "cpu_freq"): each CPU. If not a list with one element is returned. """ ret = _psplatform.cpu_freq() + # XXX + from pprint import pprint as pp + pp(ret) if percpu: return ret else: diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py index 6db776ee..0b696f8c 100755 --- a/psutil/tests/test_misc.py +++ b/psutil/tests/test_misc.py @@ -466,6 +466,9 @@ class TestScripts(unittest.TestCase): def test_winservices(self): self.assert_stdout('winservices.py') + def test_cpu_distribution(self): + self.assert_syntax('cpu_distribution.py') + # =================================================================== # --- Unit tests for test utilities. |