Correct issue on unitest

pull/738/head
nicolargo 2015-11-29 20:50:53 +01:00
parent 382fac50a6
commit 23a8dbc5cd
1 changed files with 2 additions and 2 deletions

View File

@ -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']