[elbe-devel] [PATCH 1/1] project-finetuning: Replace deprecated function

John Ogness john.ogness at linutronix.de
Mon Oct 9 17:44:28 CEST 2023


On 2023-10-09, Benedikt Spranger <b.spranger at linutronix.de> wrote:
> unit tests in project finetuning fail due to a deprecation warning:
> [ERROR]Testsuite.to_file is deprecated. It will be removed in version 2.0.0. Use function to_xml_report_file
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/elbepack/finetuning.py", line 786, in do_prj_finetuning
>     action.execute_prj(buildenv, target, builddir)
>   File "/usr/lib/python3/dist-packages/elbepack/finetuning.py", line 737, in execute_prj
>     TestSuite.to_file(output, tss)
>   File "/usr/lib/python3/dist-packages/elbepack/junit.py", line 25, in to_file
>     junit.TestSuite.to_file(f, tss, prettyprint=True)
>   File "/usr/lib/python3/dist-packages/junit_xml/__init__.py", line 268, in to_file
>     warnings.warn(
> DeprecationWarning: Testsuite.to_file is deprecated. It will be removed in version 2.0.0. Use function to_xml_report_file
>
> Replace the deprecated function.
>
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>

Reviewed-by: John Ogness <john.ognesss at linutronix.de>


More information about the elbe-devel mailing list