mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 18:23:41 +03:00
Correct unitary test issue in Python 2
This commit is contained in:
parent
cf2982d9ac
commit
7e2af7bd63
@ -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
|
||||
# =================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user