提交 7e70b36f 编写于 作者: A Alessio Sergi

Take advantage of rich comparisons for PyPy too

上级 32425eb2
......@@ -25,15 +25,10 @@ import operator
import sys
import unicodedata
import types
import platform
import subprocess
from glances.logger import logger
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,6 @@ 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 PY_PYPY
from glances.thresholds import GlancesThresholdOk
from glances.thresholds import GlancesThresholdCareful
from glances.thresholds import GlancesThresholdWarning
......@@ -213,7 +212,6 @@ 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(PY_PYPY, True)
def test_094_thresholds(self):
"""Test thresholds classes"""
print('INFO: [TEST_094] Thresholds')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册