diff options
author | nicolargo <nicolashennion@gmail.com> | 2015-11-29 20:50:53 +0100 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2015-11-29 20:50:53 +0100 |
commit | 23a8dbc5cd19402b5a9f95007987800772091d19 (patch) | |
tree | 3b7765b7edfc63ebc3bdaa61ef680ad7fdb73276 /unitest.py | |
parent | 382fac50a62632b9b3236b351f08be81689eab03 (diff) |
Correct issue on unitest
Diffstat (limited to 'unitest.py')
-rwxr-xr-x | unitest.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ if not core.is_standalone(): from glances.stats import GlancesStats stats = GlancesStats() -from glances.globals import is_windows, version +from glances.globals import WINDOWS, version from glances.outputs.glances_bars import Bar # Unitest class @@ -104,7 +104,7 @@ class TestGlances(unittest.TestCase): self.assertLessEqual(stats_grab[stat], 100) print('INFO: CPU stats: %s' % stats_grab) - @unittest.skipIf(is_windows, "Load average not available on Windows") + @unittest.skipIf(WINDOWS, "Load average not available on Windows") def test_004_load(self): """Check LOAD plugin.""" stats_to_check = ['cpucore', 'min1', 'min5', 'min15'] |