mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
parent
8e3241bab1
commit
233ebc9608
@ -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:
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user