From 27cad03fa2a88b65db63938186baba5306dd9aec Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Wed, 16 Oct 2013 21:22:59 +0000 Subject: [PATCH] Fix import grouping This is required for the follow-on H307 import grouping check. Change-Id: I2581f192b20a2b05b49620ac9e80c9c6b3fefda1 --- hacking/tests/test_config.py | 3 ++- hacking/tests/test_doctest.py | 3 +-- hacking/tests/test_gittest.py | 3 ++- hacking/tests/test_import_exceptions.py | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hacking/tests/test_config.py b/hacking/tests/test_config.py index e4b2e6a..610f6dc 100644 --- a/hacking/tests/test_config.py +++ b/hacking/tests/test_config.py @@ -11,9 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import fixtures import os +import fixtures + from hacking import config from hacking import tests diff --git a/hacking/tests/test_doctest.py b/hacking/tests/test_doctest.py index ea2c21e..5663b4b 100644 --- a/hacking/tests/test_doctest.py +++ b/hacking/tests/test_doctest.py @@ -18,11 +18,10 @@ import re from flake8 import engine import pep8 +import testscenarios from testtools import content from testtools import matchers -import testscenarios - import hacking import hacking.tests diff --git a/hacking/tests/test_gittest.py b/hacking/tests/test_gittest.py index 85c8445..4222086 100644 --- a/hacking/tests/test_gittest.py +++ b/hacking/tests/test_gittest.py @@ -13,11 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +import inspect + import fixtures import hacking.core import hacking.tests -import inspect def _fake_none_commit_title(self): diff --git a/hacking/tests/test_import_exceptions.py b/hacking/tests/test_import_exceptions.py index fd65d51..3901825 100644 --- a/hacking/tests/test_import_exceptions.py +++ b/hacking/tests/test_import_exceptions.py @@ -11,9 +11,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import fixtures import os +import fixtures + from hacking import config from hacking import core from hacking import tests