Skip to content

Commit

Permalink
Fix pylint errors in scripts_regression_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Aug 25, 2016
1 parent 5e0f491 commit 91eb28a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/python/tests/scripts_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def test_create_test_rebless_namelist(self):
fake = .true.
/"""
baseline_area = self._baseline_area
compiler = self._compiler
baseline_glob = glob.glob(os.path.join(baseline_area, self._baseline_name, "TEST*"))
self.assertEqual(len(baseline_glob), 3, msg="Expected three matches, got:\n%s" % "\n".join(baseline_glob))

Expand Down Expand Up @@ -1091,8 +1090,8 @@ def test_check_code(self):
from distutils.spawn import find_executable
pylint = find_executable("pylint")
if pylint is not None:
stat, output, _ = run_cmd("pylint --version")
pylintver = re.search(r"pylint\s+(\d+)\.(\d+).(\d+)", output)
output = run_cmd_no_fail("pylint --version")
pylintver = re.search(r"pylint\s+(\d+)[.](\d+)[.](\d+)", output)
major = int(pylintver.group(1))
minor = int(pylintver.group(2))
if pylint is None or (major <= 1 and minor < 5):
Expand Down

0 comments on commit 91eb28a

Please sign in to comment.