Fixed possible pep8 failure due to pyflakes bug
There is a bug in pyflakes that may trigger F811 violation when import is not used in a file before its redefinition in local class method scope, even though it's used in other classes later in the same file. Change-Id: Ie611e2ff93c59b01a2695c3d944cfe118f874547 Related-Bug: #1297161
This commit is contained in:
parent
57ebe0d83d
commit
135d16e9a5
@ -144,11 +144,11 @@ class GetTransportTestCase(test_utils.BaseTestCase):
|
||||
kwargs['allowed_remote_exmods'] = self.allowed
|
||||
if self.aliases is not None:
|
||||
kwargs['aliases'] = self.aliases
|
||||
transport = messaging.get_transport(self.conf, **kwargs)
|
||||
transport_ = messaging.get_transport(self.conf, **kwargs)
|
||||
|
||||
self.assertIsNotNone(transport)
|
||||
self.assertIs(transport.conf, self.conf)
|
||||
self.assertIs(transport._driver, drvr)
|
||||
self.assertIsNotNone(transport_)
|
||||
self.assertIs(transport_.conf, self.conf)
|
||||
self.assertIs(transport_._driver, drvr)
|
||||
|
||||
|
||||
class GetTransportSadPathTestCase(test_utils.BaseTestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user