summaryrefslogtreecommitdiff
path: root/oslo_utils/tests/test_fnmatch.py
diff options
context:
space:
mode:
authorCostin Galan <cgalan@cloudbasesolutions.com>2016-06-16 14:56:28 +0300
committerCostin Galan <cgalan@cloudbasesolutions.com>2016-06-17 07:51:19 +0300
commit5a8cade630e6d72e9d81784648484faa530c40da (patch)
tree20a285422b8b475668c7d8428e44aa93c1556f6e /oslo_utils/tests/test_fnmatch.py
parent2ac2bff19e4c35ec9d04c098b7a48b302602d8a2 (diff)
downloadoslo-utils-5a8cade630e6d72e9d81784648484faa530c40da.tar.gz
Fix flake8 issues
I have improved the readability of the code by fixing the problems that flake8 reported. The type of errors that are fixed are: * H302 - Import only module * H305 - Import not grouped correctly * H307 - Like imports shoud be grouped together * H402 - One line docstring needs punctation * F821 - Undefined name Change-Id: I3a7f12120b6a99342a3d2025206edcdc0f6a4a93 Signed-off-by: Costin Galan <cgalan@cloudbasesolutions.com>
Diffstat (limited to 'oslo_utils/tests/test_fnmatch.py')
-rw-r--r--oslo_utils/tests/test_fnmatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_utils/tests/test_fnmatch.py b/oslo_utils/tests/test_fnmatch.py
index 233138e..2c94dea 100644
--- a/oslo_utils/tests/test_fnmatch.py
+++ b/oslo_utils/tests/test_fnmatch.py
@@ -19,7 +19,7 @@ import sys
import mock
from oslotest import base
-from six.moves import reload_module
+import six
fnmatch = None
@@ -57,5 +57,5 @@ class TestFnmatch(base.BaseTestCase):
self._test_fnmatch_posix_nt()
with mock.patch.object(sys, 'version_info', new=(2, 7, 0)):
- reload_module(oslo_fnmatch)
+ six.moves.reload_module(oslo_fnmatch)
self._test_fnmatch_posix_nt()