summaryrefslogtreecommitdiff
path: root/psutil/tests/test_misc.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-01-24 22:15:29 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-01-24 22:15:29 +0100
commitea919d5bf74fb776a4535c2d6bb40967e77803d4 (patch)
treea26c2e6933c7e1dc4cfa265f29cec27155b243ff /psutil/tests/test_misc.py
parente6e24354854c18f38a4671cc63c98374d6082404 (diff)
downloadpsutil-ea919d5bf74fb776a4535c2d6bb40967e77803d4.tar.gz
modify test
Diffstat (limited to 'psutil/tests/test_misc.py')
-rwxr-xr-xpsutil/tests/test_misc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
index e534e006..8697bcff 100755
--- a/psutil/tests/test_misc.py
+++ b/psutil/tests/test_misc.py
@@ -469,10 +469,11 @@ class TestScripts(unittest.TestCase):
def test_cpu_distribution(self):
self.assert_syntax('cpu_distribution.py')
- @unittest.skipUnless(hasattr(psutil, "sensors_temperatures"),
- "platform not supported")
def test_sensors(self):
- self.assert_stdout('sensors.py')
+ if hasattr(psutil, "sensors_temperatures"):
+ self.assert_stdout('sensors.py')
+ else:
+ self.assert_syntax('sensors.py')
# ===================================================================