summaryrefslogtreecommitdiff
path: root/psutil/tests/test_memory_leaks.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/tests/test_memory_leaks.py')
-rwxr-xr-xpsutil/tests/test_memory_leaks.py20
1 files changed, 13 insertions, 7 deletions
diff --git a/psutil/tests/test_memory_leaks.py b/psutil/tests/test_memory_leaks.py
index 5adb2b5e..a55008e5 100755
--- a/psutil/tests/test_memory_leaks.py
+++ b/psutil/tests/test_memory_leaks.py
@@ -562,7 +562,19 @@ class TestModuleFunctionsLeaks(TestMemLeak):
"platform not supported")
@skip_if_linux()
def test_sensors_battery(self):
- self.execute(psutil.sensors_battery())
+ self.execute(psutil.sensors_battery)
+
+ @skip_if_linux()
+ @unittest.skipUnless(hasattr(psutil, "sensors_temperatures"),
+ "platform not supported")
+ def test_sensors_temperatures(self):
+ self.execute(psutil.sensors_temperatures)
+
+ @unittest.skipUnless(hasattr(psutil, "sensors_fans"),
+ "platform not supported")
+ @skip_if_linux()
+ def test_sensors_fans(self):
+ self.execute(psutil.sensors_fans)
# --- others
@@ -575,12 +587,6 @@ class TestModuleFunctionsLeaks(TestMemLeak):
def test_users(self):
self.execute(psutil.users)
- @unittest.skipUnless(hasattr(psutil, "sensors_temperatures"),
- "platform not supported")
- @skip_if_linux()
- def test_sensors_temperatures(self):
- self.execute(psutil.users)
-
if WINDOWS:
# --- win services