diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-03-20 16:10:04 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-03-20 16:24:31 +0800 |
commit | 5a3f9b806cfb7cbd4c9b93e86fba8551257cacd8 (patch) | |
tree | ded8cb89b275b0092906321a5e593c13a34754fd | |
parent | 65e3d8c9773880094c0a4c164e046fae9cb7a5d9 (diff) | |
download | oslo-5a3f9b806cfb7cbd4c9b93e86fba8551257cacd8.tar.gz oslo-5a3f9b806cfb7cbd4c9b93e86fba8551257cacd8.tar.xz oslo-5a3f9b806cfb7cbd4c9b93e86fba8551257cacd8.zip |
Removes unused imports in the tests module
Fixes bug #1157596
Change-Id: I36d5484eaa2f0e21188eed6e70cc1ad785233d6a
-rw-r--r-- | tests/unit/rpc/amqp.py | 1 | ||||
-rw-r--r-- | tests/unit/rpc/test_fake.py | 1 | ||||
-rw-r--r-- | tests/unit/rpc/test_kombu.py | 1 | ||||
-rw-r--r-- | tests/unit/rpc/test_proxy.py | 1 | ||||
-rw-r--r-- | tests/unit/rpc/test_qpid.py | 4 | ||||
-rw-r--r-- | tests/unit/rpc/test_zmq.py | 3 | ||||
-rw-r--r-- | tests/unit/test_deprecated.py | 2 | ||||
-rw-r--r-- | tests/unit/test_lockutils.py | 3 | ||||
-rw-r--r-- | tests/unit/test_network_utils.py | 2 | ||||
-rw-r--r-- | tests/unit/test_notifier.py | 1 | ||||
-rw-r--r-- | tests/unit/test_plugin.py | 2 | ||||
-rw-r--r-- | tests/unit/test_policy.py | 1 | ||||
-rw-r--r-- | tests/unit/test_processutils.py | 2 | ||||
-rw-r--r-- | tests/unit/test_service.py | 2 | ||||
-rw-r--r-- | tests/unit/test_version.py | 3 | ||||
-rw-r--r-- | tests/unit/test_wsgi.py | 2 | ||||
-rw-r--r-- | tests/unit/test_xmlutils.py | 2 | ||||
-rw-r--r-- | tests/utils.py | 2 |
18 files changed, 0 insertions, 35 deletions
diff --git a/tests/unit/rpc/amqp.py b/tests/unit/rpc/amqp.py index 4a96ce0..739297c 100644 --- a/tests/unit/rpc/amqp.py +++ b/tests/unit/rpc/amqp.py @@ -24,7 +24,6 @@ import logging from eventlet import greenthread from oslo.config import cfg -from openstack.common.gettextutils import _ from openstack.common import jsonutils from openstack.common.rpc import amqp as rpc_amqp from openstack.common.rpc import common as rpc_common diff --git a/tests/unit/rpc/test_fake.py b/tests/unit/rpc/test_fake.py index a38250b..310e114 100644 --- a/tests/unit/rpc/test_fake.py +++ b/tests/unit/rpc/test_fake.py @@ -24,7 +24,6 @@ eventlet.monkey_patch() from oslo.config import cfg -from openstack.common import rpc from openstack.common.rpc import impl_fake from tests.unit.rpc import common diff --git a/tests/unit/rpc/test_kombu.py b/tests/unit/rpc/test_kombu.py index 4a76900..cb49169 100644 --- a/tests/unit/rpc/test_kombu.py +++ b/tests/unit/rpc/test_kombu.py @@ -24,7 +24,6 @@ eventlet.monkey_patch() import contextlib import logging -import time import mock from oslo.config import cfg diff --git a/tests/unit/rpc/test_proxy.py b/tests/unit/rpc/test_proxy.py index 436bcab..6b08b91 100644 --- a/tests/unit/rpc/test_proxy.py +++ b/tests/unit/rpc/test_proxy.py @@ -22,7 +22,6 @@ import copy from openstack.common import context from openstack.common import lockutils -from openstack.common.fixture import moxstubout from openstack.common import rpc from openstack.common.rpc import proxy from tests import utils diff --git a/tests/unit/rpc/test_qpid.py b/tests/unit/rpc/test_qpid.py index ea68b47..e119793 100644 --- a/tests/unit/rpc/test_qpid.py +++ b/tests/unit/rpc/test_qpid.py @@ -23,11 +23,7 @@ Unit Tests for remote procedure calls using qpid import eventlet eventlet.monkey_patch() -import logging - import fixtures -import time -import testtools import mox from oslo.config import cfg diff --git a/tests/unit/rpc/test_zmq.py b/tests/unit/rpc/test_zmq.py index d42a07d..5339e3c 100644 --- a/tests/unit/rpc/test_zmq.py +++ b/tests/unit/rpc/test_zmq.py @@ -29,16 +29,13 @@ import socket import fixtures from oslo.config import cfg -from openstack.common import exception from openstack.common.gettextutils import _ from openstack.common.rpc import common as rpc_common from tests.unit.rpc import common try: - from eventlet.green import zmq from openstack.common.rpc import impl_zmq except ImportError: - zmq = None impl_zmq = None LOG = logging.getLogger(__name__) diff --git a/tests/unit/test_deprecated.py b/tests/unit/test_deprecated.py index 3c4706f..a398649 100644 --- a/tests/unit/test_deprecated.py +++ b/tests/unit/test_deprecated.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo.config import cfg - from openstack.common import log as logging from tests import utils as test_utils diff --git a/tests/unit/test_lockutils.py b/tests/unit/test_lockutils.py index 5d4b7ad..685b0b8 100644 --- a/tests/unit/test_lockutils.py +++ b/tests/unit/test_lockutils.py @@ -14,13 +14,10 @@ # License for the specific language governing permissions and limitations # under the License. -import errno import fcntl import os -import select import shutil import tempfile -import time import eventlet from eventlet import greenpool diff --git a/tests/unit/test_network_utils.py b/tests/unit/test_network_utils.py index e67291d..2783e70 100644 --- a/tests/unit/test_network_utils.py +++ b/tests/unit/test_network_utils.py @@ -15,8 +15,6 @@ # License for the specific language governing permissions and limitations # under the License. -import mock - from openstack.common import network_utils from tests import utils diff --git a/tests/unit/test_notifier.py b/tests/unit/test_notifier.py index 9b08c5d..f2aa3a0 100644 --- a/tests/unit/test_notifier.py +++ b/tests/unit/test_notifier.py @@ -20,7 +20,6 @@ from openstack.common import log from openstack.common.notifier import api as notifier_api from openstack.common.notifier import log_notifier from openstack.common.notifier import no_op_notifier -from openstack.common.notifier import rabbit_notifier from openstack.common import rpc from tests import utils as test_utils diff --git a/tests/unit/test_plugin.py b/tests/unit/test_plugin.py index 3509dc3..8b27397 100644 --- a/tests/unit/test_plugin.py +++ b/tests/unit/test_plugin.py @@ -15,8 +15,6 @@ import pkg_resources -from oslo.config import cfg - from openstack.common.notifier import api as notifier_api from openstack.common.plugin import plugin from openstack.common.plugin import pluginmanager diff --git a/tests/unit/test_policy.py b/tests/unit/test_policy.py index 21fe153..31a4890 100644 --- a/tests/unit/test_policy.py +++ b/tests/unit/test_policy.py @@ -17,7 +17,6 @@ """Test of Policy Engine""" -import os.path import StringIO import urllib diff --git a/tests/unit/test_processutils.py b/tests/unit/test_processutils.py index 9468618..689bad0 100644 --- a/tests/unit/test_processutils.py +++ b/tests/unit/test_processutils.py @@ -15,8 +15,6 @@ # License for the specific language governing permissions and limitations # under the License. -import mock - from openstack.common import processutils from tests import utils diff --git a/tests/unit/test_service.py b/tests/unit/test_service.py index 6738d8e..af6c303 100644 --- a/tests/unit/test_service.py +++ b/tests/unit/test_service.py @@ -24,10 +24,8 @@ import signal import time import traceback -from eventlet import greenthread from oslo.config import cfg -from openstack.common.gettextutils import _ from openstack.common import log as logging from openstack.common.notifier import api as notifier_api from openstack.common import service diff --git a/tests/unit/test_version.py b/tests/unit/test_version.py index 312f328..2133e89 100644 --- a/tests/unit/test_version.py +++ b/tests/unit/test_version.py @@ -15,11 +15,8 @@ # License for the specific language governing permissions and limitations # under the License. -import os -import shutil import StringIO import sys -import tempfile from oslo.config.cfg import * diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py index b83c865..0b8aab3 100644 --- a/tests/unit/test_wsgi.py +++ b/tests/unit/test_wsgi.py @@ -17,11 +17,9 @@ import os import socket -import ssl import urllib2 import mock -from oslo.config import cfg import routes import webob diff --git a/tests/unit/test_xmlutils.py b/tests/unit/test_xmlutils.py index c38e223..86fa69f 100644 --- a/tests/unit/test_xmlutils.py +++ b/tests/unit/test_xmlutils.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import datetime -import StringIO from xml.dom import minidom from openstack.common import xmlutils diff --git a/tests/utils.py b/tests/utils.py index a587f99..591ebef 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -17,8 +17,6 @@ """Common utilities used in testing""" -import subprocess - import fixtures from oslo.config import cfg import testtools |