| Index: tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py b/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
|
| index ad18502acf5cc6413a18edac028846de7495676f..a6d37b4aed69e2c2b885ff3f0151d69306f2fed2 100644
|
| --- a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
|
| +++ b/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
|
| @@ -13,7 +13,9 @@ class PlatformBackendTest(unittest.TestCase):
|
| def testPowerMonitoringSync(self):
|
| # Tests that the act of monitoring power doesn't blow up.
|
| platform = platform_module.GetHostPlatform()
|
| - if not platform.CanMonitorPower():
|
| + can_monitor_power = platform.CanMonitorPower()
|
| + self.assertIsInstance(can_monitor_power, bool)
|
| + if not can_monitor_power:
|
| logging.warning('Test not supported on this platform.')
|
| return
|
|
|
|
|