diff --git a/loki/dimension.py b/loki/dimension.py index a7611b403..48103b496 100644 --- a/loki/dimension.py +++ b/loki/dimension.py @@ -131,6 +131,6 @@ def index_expressions(self): exprs = [self.index,] if self._index_aliases: - exprs += [alias for alias in self._index_aliases] + exprs += list(self._index_aliases) return as_tuple(exprs) diff --git a/transformations/tests/test_block_index_inject.py b/transformations/tests/test_block_index_inject.py index 547ae9e18..af022ab59 100644 --- a/transformations/tests/test_block_index_inject.py +++ b/transformations/tests/test_block_index_inject.py @@ -324,4 +324,4 @@ def test_blockview_to_fieldview_exception(frontend, horizontal): item.trafo_data['foobar'] = {'definitions': []} with pytest.raises(RuntimeError): BlockViewToFieldViewTransformation(horizontal, key='foobar').apply(kernel, item=item, role='kernel', - targets=('compute',)) \ No newline at end of file + targets=('compute',))