diff --git a/src/gt4py/next/config.py b/src/gt4py/next/config.py index ec6a328100..de8c9f6222 100644 --- a/src/gt4py/next/config.py +++ b/src/gt4py/next/config.py @@ -134,9 +134,10 @@ def env_flag_to_int(name: str, default: int) -> int: # NOTE: Ideally we would suppress the warnings using context managers directly in # the backend. However, because this is not thread safe in Python versions before # 3.14, we have to do it here. - warnings.filterwarnings(action="ignore", module="^dace(\..+)?") + warnings.filterwarnings(action="ignore", module=r"^dace(\..+)?") warnings.filterwarnings( - action="ignore", module="^gt4py.next.program_processors.runners.dace.transformations(\..+)?" + action="ignore", + module=r"^gt4py.next.program_processors.runners.dace.transformations(\..+)?", )