Re: [PATCH] kunit: tool: remove unused JUnit imports
From: David Gow
Date: Thu Nov 26 2026 - 07:52:40 EST
> The JUnit output implementation uses ElementTree directly, so the
> xml.sax.saxutils imports are unused. Remove them.
>
> Signed-off-by: jahanzaibmir <jahanzaibashraf1318@xxxxxxxxx>
>
Thanks for catching this.
A small note: please make sure your name is in the form you're normally known
by (usually, but not necessarily your real name). If you need to adjust it,
just send out a new version.
> diff --git a/tools/testing/kunit/kunit_junit.py b/tools/testing/kunit/kunit_junit.py
> index 3622070358e7..b76748947d65 100644
> --- a/tools/testing/kunit/kunit_junit.py
> +++ b/tools/testing/kunit/kunit_junit.py
> @@ -4,7 +4,6 @@
> #
> # Copyright (C) 2026, Google LLC and David Gow.
>
> -from xml.sax.saxutils import quoteattr, XMLGenerator
> import xml.etree.ElementTree as ET
> from kunit_parser import Test, TestStatus
> from typing import Optional
Reviewed-by: David Gow <david@xxxxxxxxxxxx>
--
David Gow <david@xxxxxxxxxxxx>