mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 05:15:47 +03:00
Try to correct unitest error on Windows OS
This commit is contained in:
parent
e3d7dd26d3
commit
ceba55d7b6
16
unitest.py
16
unitest.py
@ -20,28 +20,24 @@
|
||||
|
||||
"""Glances unitary tests suite."""
|
||||
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from glances.main import GlancesMain
|
||||
from glances.stats import GlancesStats
|
||||
from glances import __version__
|
||||
from glances.globals import WINDOWS, LINUX
|
||||
from glances.outputs.glances_bars import Bar
|
||||
|
||||
# Global variables
|
||||
# =================
|
||||
|
||||
# Init Glances core
|
||||
from glances.main import GlancesMain
|
||||
core = GlancesMain()
|
||||
if not core.is_standalone():
|
||||
print('ERROR: Glances core should be ran in standalone mode')
|
||||
sys.exit(1)
|
||||
|
||||
# Init Glances stats
|
||||
from glances.stats import GlancesStats
|
||||
stats = GlancesStats()
|
||||
|
||||
from glances import __version__
|
||||
from glances.globals import WINDOWS, LINUX
|
||||
from glances.outputs.glances_bars import Bar
|
||||
|
||||
# Unitest class
|
||||
# ==============
|
||||
print('Unitary tests for Glances %s' % __version__)
|
||||
|
Loading…
Reference in New Issue
Block a user