summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2024-02-08 09:27:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-08 23:14:51 +0000
commitf58aedff022e5ddd7c9855e3fa4e71040fd5ab1e (patch)
tree9ae9d82bd5f70f9e83cb0417b90820a06b6c0fcc /meta/lib/oeqa/sdk
parent233d2d8c0d29fb7efbe278922b9fa0651fec87e9 (diff)
downloadpoky-f58aedff022e5ddd7c9855e3fa4e71040fd5ab1e.tar.gz
oeqa: replace deprecated assertEquals
assertEquals is deprecated since Python 2.7: https://docs.python.org/2/library/unittest.html#deprecated-aliases It throws errors at least on Python 3.12. Replace it by assertEqual. (From OE-Core rev: 68286d0b70cf09a0d2950b48945c9192fb8c8769) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r--meta/lib/oeqa/sdk/buildtools-cases/sanity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/buildtools-cases/sanity.py b/meta/lib/oeqa/sdk/buildtools-cases/sanity.py
index b9dfa39a06..a55d456656 100644
--- a/meta/lib/oeqa/sdk/buildtools-cases/sanity.py
+++ b/meta/lib/oeqa/sdk/buildtools-cases/sanity.py
@@ -21,4 +21,4 @@ class SanityTests(OESDKTestCase):
21 # Canonicalise the location of this command 21 # Canonicalise the location of this command
22 tool_path = os.path.realpath(self._run("command -v %s" % command).strip()) 22 tool_path = os.path.realpath(self._run("command -v %s" % command).strip())
23 # Assert that the tool was found inside the SDK root 23 # Assert that the tool was found inside the SDK root
24 self.assertEquals(os.path.commonprefix((sdk_base, tool_path)), sdk_base) 24 self.assertEqual(os.path.commonprefix((sdk_base, tool_path)), sdk_base)