mirror of https://github.com/nicolargo/glances
Correct an issue on unitest with PY3
parent
32d5047d30
commit
3c42bb929b
|
@ -28,6 +28,7 @@ from glances.stats import GlancesStats
|
|||
from glances import __version__
|
||||
from glances.globals import WINDOWS, LINUX
|
||||
from glances.outputs.glances_bars import Bar
|
||||
from glances.compat import PY3
|
||||
from glances.thresholds import GlancesThresholdOk
|
||||
from glances.thresholds import GlancesThresholdCareful
|
||||
from glances.thresholds import GlancesThresholdWarning
|
||||
|
@ -210,6 +211,7 @@ class TestGlances(unittest.TestCase):
|
|||
self.assertTrue(type(stats_grab) is list, msg='GPU stats is not a list')
|
||||
print('INFO: GPU stats: %s' % stats_grab)
|
||||
|
||||
@unittest.skipIf(PY3, True)
|
||||
def test_094_thresholds(self):
|
||||
"""Test thresholds classes"""
|
||||
print('INFO: [TEST_094] Thresholds')
|
||||
|
|
Loading…
Reference in New Issue