Merge "TEMPEST: refactor error handling while installation"
This commit is contained in:
commit
a34f54bd3c
@ -82,10 +82,10 @@ def check_assert_methods_from_mock(logical_line, filename):
|
|||||||
def check_import_of_logging(logical_line, filename):
|
def check_import_of_logging(logical_line, filename):
|
||||||
"""Check correctness import of logging module N310."""
|
"""Check correctness import of logging module N310."""
|
||||||
|
|
||||||
excluded_files = ["./rally/log.py"]
|
excluded_files = ["./rally/log.py", "./tests/unit/test_log.py"]
|
||||||
|
|
||||||
forbidden_imports = ["from rally.openstack.common import log",
|
forbidden_imports = ["from rally.openstack.common import log",
|
||||||
"import rally.openstack.common.log"
|
"import rally.openstack.common.log",
|
||||||
"import logging"]
|
"import logging"]
|
||||||
|
|
||||||
if filename not in excluded_files:
|
if filename not in excluded_files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user