From 2afdc19952afde22bc859dfcbbf8a428b4af9581 Mon Sep 17 00:00:00 2001 From: Andrew Porter Date: Thu, 30 Jan 2025 16:43:50 +0000 Subject: [PATCH] #2854 fix linting --- .../domain/common/transformations/kernel_module_inline_trans.py | 2 +- .../tests/domain/gocean/transformations/globalstoargs_test.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/psyclone/domain/common/transformations/kernel_module_inline_trans.py b/src/psyclone/domain/common/transformations/kernel_module_inline_trans.py index d3b30ac8d7..06c90b367a 100644 --- a/src/psyclone/domain/common/transformations/kernel_module_inline_trans.py +++ b/src/psyclone/domain/common/transformations/kernel_module_inline_trans.py @@ -217,7 +217,7 @@ def check_data_accesses(call, kernel_schedule, kname, kern_or_call): if symbol.is_unresolved: raise KeyError( f"Failed to resolve the type of Symbol " - f"'{sym.name}'") + f"'{symbol.name}'") except KeyError as err: raise TransformationError( f"{kern_or_call} '{kname}' contains accesses to " diff --git a/src/psyclone/tests/domain/gocean/transformations/globalstoargs_test.py b/src/psyclone/tests/domain/gocean/transformations/globalstoargs_test.py index 4e00ae9b51..584fc74f8c 100644 --- a/src/psyclone/tests/domain/gocean/transformations/globalstoargs_test.py +++ b/src/psyclone/tests/domain/gocean/transformations/globalstoargs_test.py @@ -94,7 +94,6 @@ def test_kernelimportstoargumentstrans_no_wildcard_import(): ''' Check that the transformation rejects kernels with wildcard imports. ''' trans = KernelImportsToArguments() - path = os.path.join(BASEPATH, "gocean1p0") psy, invoke_info = get_invoke( "single_invoke_kern_with_unqualified_use.f90", idx=0, api=API) kernel = invoke_info.schedule.coded_kernels()[0]