From 533cbfa59e4d9e0740cb31ef04e6e718533bfb99 Mon Sep 17 00:00:00 2001 From: Ahmad Nawab Date: Fri, 14 Jul 2023 16:22:01 +0000 Subject: [PATCH] pylint cleanup --- transformations/tests/conftest.py | 2 +- transformations/tests/test_ecwam.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transformations/tests/conftest.py b/transformations/tests/conftest.py index 0f740b032..c2e79be4f 100644 --- a/transformations/tests/conftest.py +++ b/transformations/tests/conftest.py @@ -5,10 +5,10 @@ # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. +from pathlib import Path import shutil import pytest import yaml -from pathlib import Path from loki import as_tuple, Frontend import loki.frontend diff --git a/transformations/tests/test_ecwam.py b/transformations/tests/test_ecwam.py index 715de0aea..e16d80805 100644 --- a/transformations/tests/test_ecwam.py +++ b/transformations/tests/test_ecwam.py @@ -105,7 +105,7 @@ def test_ecwam(here, write_script, frontend=FP): try: execute([str(script)], cwd=here/'build', silent=False, env=env) with open(here/"build/wamrun_48/logs/model/stdout.log") as reader: - lines = [line for line in reader] + lines = list(reader) if 'Validation FAILED' in lines[-1]: failures[binary] = 'Validation failed'