From ddc475d7292e643c59f362464222f8ce44d02c25 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 30 Apr 2026 15:55:27 +0100 Subject: [PATCH] Use raw strings for regexs in python tests --- util/test/rdtest/testcase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/test/rdtest/testcase.py b/util/test/rdtest/testcase.py index ef7102449..878fd74c8 100644 --- a/util/test/rdtest/testcase.py +++ b/util/test/rdtest/testcase.py @@ -817,18 +817,18 @@ class TestCase: remaining = '' # Otherwise, take off any child if we haven't started recursing - m = re.match("([a-zA-Z0-9_]+)(\[.*|\..*)", path) + m = re.match(r"([a-zA-Z0-9_]+)(\[.*|\..*)", path) if m: child = m.group(1) remaining = m.group(2) else: # array index - m = re.match("(\[[0-9]*\])(.*)", path) + m = re.match(r"(\[[0-9]*\])(.*)", path) if m: child = m.group(1) remaining = m.group(2) else: - m = re.match("\.([a-zA-Z0-9_]+)(.*)", path) + m = re.match(r"\.([a-zA-Z0-9_]+)(.*)", path) if m: child = m.group(1) remaining = m.group(2)