diff --git a/loki/batch/tests/test_scheduler.py b/loki/batch/tests/test_scheduler.py index fe23df8df..40977b85a 100644 --- a/loki/batch/tests/test_scheduler.py +++ b/loki/batch/tests/test_scheduler.py @@ -2946,11 +2946,11 @@ def test_scheduler_indirect_import(frontend, tmp_path, enable_imports, import_le end module b_mod """ + module_import_stmt = "" + routine_import_stmt = "" if import_level == 'module': module_import_stmt = "use b_mod, only: type_b, global_a" - routine_import_stmt = "" elif import_level == 'subroutine': - module_import_stmt = "" routine_import_stmt = "use b_mod, only: type_b, global_a" fcode_mod_c = f"""