From: Adrian Freihofer Date: Sat, 10 Feb 2024 13:15:58 +0000 (+0100) Subject: meta/lib/patchtest: python 3.12 regex X-Git-Tag: yocto-5.2~3717 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=329a555f7b8f00c648c44b01f423e6da33a46245;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meta/lib/patchtest: python 3.12 regex Python 3 interprets string literals as Unicode strings, and therefore \s is treated as an escaped Unicode character which is not correct. Declaring the RegEx pattern as a raw string instead of unicode is required for Python 3. Signed-off-by: Adrian Freihofer Signed-off-by: Richard Purdie --- diff --git a/meta/lib/patchtest/tests/base.py b/meta/lib/patchtest/tests/base.py index aecbbc4aae5..424e61b5be2 100644 --- a/meta/lib/patchtest/tests/base.py +++ b/meta/lib/patchtest/tests/base.py @@ -34,8 +34,8 @@ class PatchtestOEError(Exception): class Base(unittest.TestCase): # if unit test fails, fail message will throw at least the following JSON: {"id": } - endcommit_messages_regex = re.compile('\(From \w+-\w+ rev:|(?