Correct unitary test issue in Python 2

This commit is contained in:
nicolargo 2022-03-06 11:22:55 +01:00
parent cf2982d9ac
commit 7e2af7bd63

View File

@ -21,7 +21,6 @@
"""Glances unitary tests suite."""
import time
from tracemalloc import Snapshot
import unittest
from glances.main import GlancesMain
@ -39,6 +38,9 @@ from glances.compat import subsample, range
from glances.secure import secure_popen
from glances.compat import PY3
if PY3:
from tracemalloc import Snapshot
# Global variables
# =================