[PATCH 1/3] tools: binman: fix deprecated Python unittest methods

Simon Glass sjg at chromium.org
Wed Jun 5 04:13:38 CEST 2024


On Tue, 4 Jun 2024 at 10:16, Brandon Maier <brandon.maier at collins.com> wrote:
>
> 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 at collins.com>
> CC: Simon Glass <sjg at chromium.org>
> CC: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> ---
>  tools/binman/entry_test.py  |  6 +--
>  tools/binman/fdt_test.py    | 48 ++++++++++++------------
>  tools/binman/ftest.py       | 42 ++++++++++-----------
>  tools/buildman/func_test.py | 74 ++++++++++++++++++-------------------
>  tools/buildman/test.py      |  2 +-
>  5 files changed, 86 insertions(+), 86 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list