summaryrefslogtreecommitdiff
path: root/psutil/tests
diff options
context:
space:
mode:
authorAlex Manuskin <amanusk@protonmail.com>2018-06-26 16:19:54 +0300
committerGiampaolo Rodola <g.rodola@gmail.com>2018-06-26 06:19:54 -0700
commit196802dd34b7134c1fff99ad4755d0bc0e04cc98 (patch)
tree6afb9396ae0231bef6df741b6b136f4a9f1e6b90 /psutil/tests
parentd20b9939b985d871177bee2c1271a04a1810a100 (diff)
downloadpsutil-196802dd34b7134c1fff99ad4755d0bc0e04cc98.tar.gz
Osx temps (#1284)
OSX: add temperatures() and fans()
Diffstat (limited to 'psutil/tests')
-rwxr-xr-xpsutil/tests/test_contracts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index 0dfb3e2a..912e811f 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -116,10 +116,10 @@ class TestAvailability(unittest.TestCase):
self.assertEqual(hasattr(psutil, "cpu_freq"), linux or OSX or WINDOWS)
def test_sensors_temperatures(self):
- self.assertEqual(hasattr(psutil, "sensors_temperatures"), LINUX)
+ self.assertEqual(hasattr(psutil, "sensors_temperatures"), LINUX or OSX)
def test_sensors_fans(self):
- self.assertEqual(hasattr(psutil, "sensors_fans"), LINUX)
+ self.assertEqual(hasattr(psutil, "sensors_fans"), LINUX or OSX)
def test_battery(self):
self.assertEqual(hasattr(psutil, "sensors_battery"),