diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-06 14:33:19 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-06 14:33:19 +0100 |
| commit | 99bf6e2d01cb948f1f87346c43935d26913f4b7b (patch) | |
| tree | 7916f28a80d9e6dda2d31ff8ccd5e9cc7c1cdf6e /psutil/tests/test_misc.py | |
| parent | ba2fdbd15f43bf2f82458d39310edd0bc2c57588 (diff) | |
| download | psutil-99bf6e2d01cb948f1f87346c43935d26913f4b7b.tar.gz | |
fix various failures occurring on CentOS
Diffstat (limited to 'psutil/tests/test_misc.py')
| -rwxr-xr-x | psutil/tests/test_misc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py index 88d02f18..571c03a3 100755 --- a/psutil/tests/test_misc.py +++ b/psutil/tests/test_misc.py @@ -471,7 +471,8 @@ class TestScripts(unittest.TestCase): @unittest.skipIf(TRAVIS, "unreliable on travis") def test_temperatures(self): - if hasattr(psutil, "sensors_temperatures"): + if hasattr(psutil, "sensors_temperatures") and \ + psutil.sensors_temperatures(): self.assert_stdout('temperatures.py') else: self.assert_syntax('temperatures.py') |
