Skip to content

Commit

Permalink
Fix typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Feb 28, 2024
1 parent 991b321 commit 04d2d50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ def test_scheduler_frontend_args(frontend, frontend_args, defines, preprocess,

scheduler = Scheduler(
paths=[workdir], config=config, seed_routines=['test_scheduler_frontend_args1'],
frontend=frontend, defines=defines, preprocess=preprocess, xmods=workdir
frontend=frontend, defines=defines, preprocess=preprocess, xmods=[workdir]
)

assert set(scheduler.items) == set(expected_dependencies)
Expand All @@ -2654,7 +2654,9 @@ def test_scheduler_frontend_args(frontend, frontend_args, defines, preprocess,

for item in scheduler.items:
cpp_directives = FindNodes(PreprocessorDirective).visit(item.ir.ir)
assert bool(cpp_directives) == (item in has_cpp_directives)
assert bool(cpp_directives) == (item in has_cpp_directives and frontend != OMNI)
# NB: OMNI always does preprocessing, therefore we won't find the CPP directives
# after the full parse

rmtree(workdir)

Expand Down

0 comments on commit 04d2d50

Please sign in to comment.