Avocado: Optimize imports

Clean up imports inside the avocado code tree. This
does not bring any functional changes to avocado.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 58340038
......@@ -17,6 +17,7 @@ import shutil
from avocado.utils import path as utils_path
BASE_DIR = os.environ.get('TMPDIR', '/tmp')
# If you want to debug problems with your aexpect instances, setting
# DEBUG = True will leave the temporary files created by aexpect around
......
......@@ -27,7 +27,6 @@ import shutil
from avocado import multiplexer
from avocado import result
from avocado import test
from avocado import runner
from avocado import loader
from avocado import runtime
......
......@@ -15,7 +15,6 @@
"""Run tests with GDB goodies enabled."""
from avocado import runtime
from avocado.utils import process
from avocado.utils import path as utils_path
from avocado.plugins import plugin
......
......@@ -14,7 +14,6 @@
import os
import sys
import collections
from avocado.plugins import plugin
from avocado.core import output
......
......@@ -30,7 +30,6 @@ from avocado.core import exceptions
from avocado.core import output
from avocado.core import status
from avocado.core import exit_codes
from avocado.utils import path
from avocado.utils import wait
from avocado.utils import stacktrace
......
......@@ -22,6 +22,7 @@ import time
from avocado.utils import path as utils_path
log = logging.getLogger('avocado.test')
......
......@@ -24,6 +24,7 @@ from avocado.core import exceptions
from avocado.core import output
from avocado.utils import process
LOG = logging.getLogger('avocado.test')
try:
......
......@@ -20,6 +20,7 @@ import logging
from xml.dom import minidom
from avocado.utils import remote
LOG = logging.getLogger('avocado.test')
try:
......
#!/usr/bin/python
import base64
from avocado import test
from avocado import job
import base64
class WhiteBoard(test.Test):
......
import os
import sys
import shutil
import tempfile
import unittest
# simple magic for using scripts within a source tree
......
......@@ -8,7 +8,6 @@ basedir = os.path.abspath(basedir)
if os.path.isdir(os.path.join(basedir, 'avocado')):
sys.path.append(basedir)
from avocado import runtime
from avocado.utils import process
......
import os
import shutil
import sys
import tempfile
import unittest
# simple magic for using scripts within a source tree
......
......@@ -6,6 +6,7 @@ import tempfile
from flexmock import flexmock
# simple magic for using scripts within a source tree
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
basedir = os.path.dirname(basedir)
......
......@@ -5,6 +5,7 @@ import unittest
from flexmock import flexmock
# simple magic for using scripts within a source tree
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
basedir = os.path.dirname(basedir)
......
import unittest
import itertools
from avocado import multiplexer
from avocado.core import tree
import itertools
TREE = tree.create_from_yaml(['examples/mux-selftest.yaml'])
......
......@@ -3,15 +3,14 @@
__author__ = 'Lucas Meneghel Rodrigues <lmr@redhat.com>'
from nose.selector import Selector
import logging
import os
import sys
from nose.selector import Selector
from nose.plugins import Plugin
from nose.plugins.attrib import AttributeSelector
import logging
import os
import nose
import sys
logger = logging.getLogger(__name__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册