Skip to content

Commit

Permalink
Correct Travis IC
Browse files Browse the repository at this point in the history
(cherry picked from commit 5b3b798)
  • Loading branch information
nicolargo committed May 30, 2017
1 parent 8e3241b commit 233ebc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions glances/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
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:
Expand Down
3 changes: 2 additions & 1 deletion unitest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
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
Expand Down Expand Up @@ -212,6 +212,7 @@ def test_013_gpu(self):
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')
Expand Down

0 comments on commit 233ebc9

Please sign in to comment.