[PATCH 1/1] patman: fix class TestFunctional
Simon Glass
sjg at chromium.org
Fri Apr 28 21:20:07 CEST 2023
On Fri, 21 Apr 2023 at 06:07, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Variable orig_dir cannot be used in the finally block if it has not be
> assigned outside of the try block.
>
> tools/patman/func_test.py:523:21:
> E0601: Using variable 'orig_dir' before assignment
> (used-before-assignment)
>
> tools/patman/func_test.py:691:21:
> E0601: Using variable 'orig_dir' before assignment
> (used-before-assignment)
>
> Fixes: fd70986a62af ("patman: Add a test that uses gitpython")
> Fixes: be051c0c7741 ("patman: Detect missing upstream in CountCommitsToBranch")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> tools/patman/func_test.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list