diff --git a/ckan/tests/test_coding_standards.py b/ckan/tests/test_coding_standards.py index edbd500fe48..1fbb3dd25ff 100644 --- a/ckan/tests/test_coding_standards.py +++ b/ckan/tests/test_coding_standards.py @@ -272,13 +272,13 @@ def setup(cls): @classmethod def process(cls): blacklist = cls.CKAN_IMPORTS_BLACKLIST_FILES - re_nasty_import = re.compile(r'^from\s.*\bckan\b(?!\.common).*\bimport') + re_bad_import = re.compile(r'^from\s.*\bckan\b(?!\.common).*\bimport') for path, filename in process_directory(base_path): f = open(path, 'r') count = 1 errors = [] for line in f: - if re_nasty_import.search(line): + if re_bad_import.search(line): errors.append('ln:%s \t%s' % (count, line[:-1])) count += 1 if errors and not filename in blacklist: