From 8dd1e85fb2a2c92eafd9e138351bef8113bd4b23 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 21 Sep 2024 22:53:31 +0100 Subject: [PATCH] waftools/unittest.py: fix regex syntax Invalid regex escape is detected by python-3.12 warning as: waftools/unittest.py:27: SyntaxWarning: invalid escape sequence '\s' --- waftools/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waftools/unittest.py b/waftools/unittest.py index 16d1ef647..83a26307b 100644 --- a/waftools/unittest.py +++ b/waftools/unittest.py @@ -24,7 +24,7 @@ def run(self): code = code.replace("@@REGISTER_TEST_SUITES@@", register) self.outputs[0].write(code) -scraper = re.compile("^(CASE|SETUP)\s*\(([^)]+)\)") +scraper = re.compile(r'^(CASE|SETUP)\s*\(([^)]+)\)') def scrape_test_cases(node): suite = ""