Skip to content

Commit

Permalink
block_index_trafos: change scope of test config fixture to function
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed May 13, 2024
1 parent fc714e1 commit eea26f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions loki/program_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
# nor does it submit to any jurisdiction.

from abc import abstractmethod
from collections import defaultdict

from loki.expression import Variable, SubstituteExpressions
from loki.expression import Variable
from loki.frontend import (
Frontend, parse_omni_source, parse_ofp_source, parse_fparser_source,
RegexParserClass, preprocess_cpp, sanitize_input
Expand Down
2 changes: 1 addition & 1 deletion loki/transformations/tests/test_block_index_inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def fixture_blocking():
return Dimension(name='blocking', size='nb', index='ibl', index_aliases='bnds%kbl')


@pytest.fixture(scope='module', name='config')
@pytest.fixture(scope='function', name='config')
def fixture_config():
"""
Default configuration dict with basic options.
Expand Down

0 comments on commit eea26f5

Please sign in to comment.