From 101e2ae00b88a38b907f869ac082adb4d8cdf702 Mon Sep 17 00:00:00 2001 From: Ward Poelmans Date: Wed, 16 Aug 2023 17:35:19 +0200 Subject: [PATCH] make regex string raw --- test/framework/module_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/module_generator.py b/test/framework/module_generator.py index 15498c785f..a0c6131140 100644 --- a/test/framework/module_generator.py +++ b/test/framework/module_generator.py @@ -764,7 +764,7 @@ def test_module_extensions(self): modgen = self.MODULE_GENERATOR_CLASS(eb) desc = modgen.get_description() - self.assertFalse(re.search("\s*extensions\(", desc), "No extensions found in: %s" % desc) + self.assertFalse(re.search(r"\s*extensions\(", desc), "No extensions found in: %s" % desc) def test_prepend_paths(self): """Test generating prepend-paths statements."""