summaryrefslogtreecommitdiff
path: root/ironic/tests/base.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <openstack.org@sodarock.com>2018-04-10 17:29:33 -0700
committerJohn L. Villalovos <openstack.org@sodarock.com>2018-04-10 17:34:04 -0700
commit6b91ba21df3f60e8362ef86b90de93e73e317b20 (patch)
tree0a754eca076fa0334f0eb10fdd9c6b5c714c3ccb /ironic/tests/base.py
parentca91d4d871bae437da2c6173e7a0aad5c3b44532 (diff)
downloadironic-6b91ba21df3f60e8362ef86b90de93e73e317b20.tar.gz
Resolve pep8 E402 errors and no longer ignore E402
Fix the pep8 E402 (Module level import not at top of file) errors. For the Alembic files move the definitions of 'revision' and 'down_revision' below the imports. This is now done in Alembic [1] For other files fix as needed by moving the imports or lines before the imports. In a few cases add a "# noqa E402" to whitelist the issue. [1] https://bitbucket.org/zzzeek/alembic/commits/dc2aae0374b76ccab8494be6e103d84089bc449b Change-Id: I48c96d5da0cb747b3ca3fceea9b4ffa85a9ebe22
Diffstat (limited to 'ironic/tests/base.py')
-rw-r--r--ironic/tests/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ironic/tests/base.py b/ironic/tests/base.py
index 5a3851bd0..61e5ad069 100644
--- a/ironic/tests/base.py
+++ b/ironic/tests/base.py
@@ -28,9 +28,8 @@ import sys
import tempfile
import eventlet
-eventlet.monkey_patch(os=False)
-
-import fixtures # noqa for I202 due to 'import eventlet' above
+eventlet.monkey_patch(os=False) # noqa E402
+import fixtures
from ironic_lib import utils
from oslo_concurrency import processutils
from oslo_config import fixture as config_fixture