diff --git a/loki/analyse/tests/__init__.py b/loki/analyse/tests/__init__.py new file mode 100644 index 000000000..538bb4e73 --- /dev/null +++ b/loki/analyse/tests/__init__.py @@ -0,0 +1,6 @@ +# (C) Copyright 2018- ECMWF. +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. diff --git a/loki/backend/tests/__init__.py b/loki/backend/tests/__init__.py new file mode 100644 index 000000000..538bb4e73 --- /dev/null +++ b/loki/backend/tests/__init__.py @@ -0,0 +1,6 @@ +# (C) Copyright 2018- ECMWF. +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. diff --git a/loki/backend/tests/test_fgen.py b/loki/backend/tests/test_fgen.py index 7895b869b..e3700209d 100644 --- a/loki/backend/tests/test_fgen.py +++ b/loki/backend/tests/test_fgen.py @@ -11,7 +11,7 @@ from loki.backend import fgen from loki.expression import symbols as sym from loki.frontend import available_frontends, OMNI -from loki.ir import Intrinsic, DataDeclaration +from loki.ir import DataDeclaration from loki.types import ProcedureType, BasicType diff --git a/loki/batch/tests/__init__.py b/loki/batch/tests/__init__.py new file mode 100644 index 000000000..538bb4e73 --- /dev/null +++ b/loki/batch/tests/__init__.py @@ -0,0 +1,6 @@ +# (C) Copyright 2018- ECMWF. +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. diff --git a/loki/batch/tests/test_batch.py b/loki/batch/tests/test_batch.py index a402d25b3..7abf47d90 100644 --- a/loki/batch/tests/test_batch.py +++ b/loki/batch/tests/test_batch.py @@ -402,6 +402,7 @@ def test_procedure_item1(testdir): # To ensure any existing items from the item_cache are re-used, we instantiate one for # the procedure binding + # pylint: disable=unsupported-binary-operation t_mod_t_proc = get_item( ProcedureBindingItem, proj/'module/t_mod.F90', 't_mod#t%proc', RegexParserClass.ProgramUnitClass | RegexParserClass.TypeDefClass | RegexParserClass.DeclarationClass @@ -805,6 +806,7 @@ def test_interface_item_in_subroutine(testdir): def test_procedure_binding_item1(testdir): proj = testdir/'sources/projBatch' + # pylint: disable=unsupported-binary-operation parser_classes = ( RegexParserClass.ProgramUnitClass | RegexParserClass.TypeDefClass | RegexParserClass.DeclarationClass ) @@ -830,6 +832,7 @@ def test_procedure_binding_item1(testdir): def test_procedure_binding_item2(testdir, default_config): proj = testdir/'sources/projBatch' + # pylint: disable=unsupported-binary-operation parser_classes = ( RegexParserClass.ProgramUnitClass | RegexParserClass.TypeDefClass | RegexParserClass.DeclarationClass ) @@ -871,6 +874,7 @@ def test_procedure_binding_item2(testdir, default_config): def test_procedure_binding_item3(testdir): proj = testdir/'sources/projBatch' + # pylint: disable=unsupported-binary-operation parser_classes = ( RegexParserClass.ProgramUnitClass | RegexParserClass.TypeDefClass | RegexParserClass.DeclarationClass ) @@ -909,6 +913,7 @@ def test_procedure_binding_item3(testdir): ]) def test_procedure_binding_with_config(testdir, config, expected_dependencies): proj = testdir/'sources/projBatch' + # pylint: disable=unsupported-binary-operation parser_classes = ( RegexParserClass.ProgramUnitClass | RegexParserClass.TypeDefClass | RegexParserClass.DeclarationClass ) diff --git a/loki/batch/tests/test_transformation.py b/loki/batch/tests/test_transformation.py index c410441c1..a69a42f05 100644 --- a/loki/batch/tests/test_transformation.py +++ b/loki/batch/tests/test_transformation.py @@ -629,8 +629,8 @@ def transform_subroutine(self, routine, **kwargs): assert comments[4].text == '! No !' # Check that the string representation is sane - assert '