From e3e16a5f161f9635b0533d84c608d42ea56976ef Mon Sep 17 00:00:00 2001 From: samkellerhals Date: Fri, 17 Nov 2023 10:14:26 +0100 Subject: [PATCH] Fix codegen regex --- tools/tests/icon4pygen/test_codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/icon4pygen/test_codegen.py b/tools/tests/icon4pygen/test_codegen.py index 8f1fac2275..68fcccf459 100644 --- a/tools/tests/icon4pygen/test_codegen.py +++ b/tools/tests/icon4pygen/test_codegen.py @@ -109,7 +109,7 @@ def check_header_codegen(fname: str) -> None: def check_gridtools_codegen(fname: str) -> None: stencil_name = fname.replace(".hpp", "") - patterns = ["#include <.*>", "using .*;", f"inline auto {stencil_name}"] + patterns = ["#include <.*>", "using .*;", f"inline\s+auto\s+{stencil_name}"] check_for_matches(fname, patterns)