diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-02-10 14:15:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-13 13:51:41 +0000 |
commit | 7f2755daca55c0abdca9a9a2c01ddc21292a99d6 (patch) | |
tree | 58c619d8282af4bae6c0ef0b01285672c4b365ac /meta/lib/oeqa/oetest.py | |
parent | 66850944957c312d3acc361267536b1f4aa8474e (diff) | |
download | poky-7f2755daca55c0abdca9a9a2c01ddc21292a99d6.tar.gz |
meta/lib/oeqa: 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.
(From OE-Core rev: 9002850f0c2e409d3bc629e36bb360b96326bb64)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index cf417db0d4..bcb6a878c7 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py | |||
@@ -241,7 +241,7 @@ class TestContext(object): | |||
241 | 241 | ||
242 | modules = [] | 242 | modules = [] |
243 | for test in self.testslist: | 243 | for test in self.testslist: |
244 | if re.search("\w+\.\w+\.test_\S+", test): | 244 | if re.search(r"\w+\.\w+\.test_\S+", test): |
245 | test = '.'.join(t.split('.')[:3]) | 245 | test = '.'.join(t.split('.')[:3]) |
246 | module = pkgutil.get_loader(test) | 246 | module = pkgutil.get_loader(test) |
247 | modules.append(module) | 247 | modules.append(module) |