Clean imports in code
This patch set modifies lines which are importing objects instead of modules. As per openstack import guide lines, user should import modules in a file not objects. http://docs.openstack.org/developer/hacking/#imports Change-Id: Ib7f8e7e62af62ff768c1b1f065aca0a4c7db75c4
This commit is contained in:
parent
8c7067e839
commit
9d4c26e73f
|
@ -18,7 +18,7 @@ import six
|
|||
|
||||
from ceilometermiddleware import swift
|
||||
from ceilometermiddleware.tests import base as tests_base
|
||||
from threading import Event
|
||||
import threading
|
||||
|
||||
|
||||
class FakeApp(object):
|
||||
|
@ -90,7 +90,7 @@ class TestSwift(tests_base.TestCase):
|
|||
self.assertEqual('get', data[2]['target']['action'])
|
||||
|
||||
def test_get_background(self):
|
||||
notified = Event()
|
||||
notified = threading.Event()
|
||||
app = swift.Swift(FakeApp(),
|
||||
{"nonblocking_notify": "True",
|
||||
"send_queue_size": "1"})
|
||||
|
|
Loading…
Reference in New Issue