Correct Travis IC

(cherry picked from commit 5b3b7984e7)
This commit is contained in:
nicolargo 2017-05-29 06:57:29 +02:00
parent 8e3241bab1
commit 233ebc9608
2 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,12 @@ import operator
import sys
import unicodedata
import types
import platform
PY_CYTHON = platform.python_implementation() == 'CPython'
PY_PYPY = platform.python_implementation() == 'PyPy'
PY_JYTHON = platform.python_implementation() == 'Jython'
PY_IRON = platform.python_implementation() == 'IronPython'
PY3 = sys.version_info[0] == 3
try:

View File

@ -28,7 +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.compat import PY3, PY_PYPY
from glances.thresholds import GlancesThresholdOk
from glances.thresholds import GlancesThresholdCareful
from glances.thresholds import GlancesThresholdWarning
@ -212,6 +212,7 @@ class TestGlances(unittest.TestCase):
print('INFO: GPU stats: %s' % stats_grab)
@unittest.skipIf(PY3, True)
@unittest.skipIf(PY_PYPY, True)
def test_094_thresholds(self):
"""Test thresholds classes"""
print('INFO: [TEST_094] Thresholds')