summaryrefslogtreecommitdiff
path: root/psutil/tests/test_misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/tests/test_misc.py')
-rwxr-xr-xpsutil/tests/test_misc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
index 571c03a3..615f18a1 100755
--- a/psutil/tests/test_misc.py
+++ b/psutil/tests/test_misc.py
@@ -477,6 +477,13 @@ class TestScripts(unittest.TestCase):
else:
self.assert_syntax('temperatures.py')
+ @unittest.skipIf(TRAVIS, "unreliable on travis")
+ def test_fans(self):
+ if hasattr(psutil, "sensors_fans") and psutil.sensors_fans():
+ self.assert_stdout('fans.py')
+ else:
+ self.assert_syntax('fans.py')
+
def test_battery(self):
if hasattr(psutil, "sensors_battery") and \
psutil.sensors_battery() is not None: