]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: binman: fix deprecated Python unittest methods
authorBrandon Maier <brandon.maier@collins.com>
Tue, 4 Jun 2024 16:16:05 +0000 (16:16 +0000)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Jul 2024 06:36:33 +0000 (07:36 +0100)
commit357bfca5e616c7fc003cce1ddda44016660cf75f
tree4d45866d92d8a4e197404acc64451c2ffb04015b
parenta8729a260b53b9a2fce2607ac90744a47f96daef
tools: binman: fix deprecated Python unittest methods

The methods `unittest.assertEquals()` and
`unittest.assertRegexpMatches()` are marked deprecated[1].

In Python 3.12 these aliases have been removed, so do a sed to replace
them with their new names.

[1] https://docs.python.org/3.11/library/unittest.html#deprecated-aliases

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
CC: Simon Glass <sjg@chromium.org>
CC: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/binman/entry_test.py
tools/binman/fdt_test.py
tools/binman/ftest.py
tools/buildman/func_test.py
tools/buildman/test.py