Merge "Fix import-outside-toplevel warnings"
This commit is contained in:
commit
ecbe2a2059
@ -25,6 +25,7 @@ def print_binary_name():
|
||||
# NOTE(yamamoto): Don't move this import to module-level.
|
||||
# The aim is to test importing from eventlet non-main thread.
|
||||
# See Bug #1367075 for details.
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from neutron.agent.linux import iptables_manager
|
||||
|
||||
print(iptables_manager.binary_name)
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
from neutron.db.migration.models import head
|
||||
from neutron.tests.functional import base
|
||||
|
||||
|
||||
@ -34,5 +35,4 @@ class TestDBCreation(base.BaseLoggingTestCase):
|
||||
metadata.create_all(self.engine)
|
||||
|
||||
def test_head_creation(self):
|
||||
from neutron.db.migration.models import head
|
||||
self._test_creation(head)
|
||||
|
Loading…
x
Reference in New Issue
Block a user