From: Michał Winiarski Date: Wed, 12 Jan 2022 23:36:57 +0000 (+0100) Subject: kunit: tool: Import missing importlib.abc X-Git-Tag: accepted/tizen/unified/20230118.172025~2338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec1d9bb08850d973f9d3ccc9ff0222c44ab4ff6e;p=platform%2Fkernel%2Flinux-rpi.git kunit: tool: Import missing importlib.abc [ Upstream commit 235528072f28b3b0a1446279b7eaddda36dbf743 ] Python 3.10.0 contains: 9e09849d20 ("bpo-41006: importlib.util no longer imports typing (GH-20938)") It causes importlib.util to no longer import importlib.abs, which leads to the following error when trying to use kunit with qemu: AttributeError: module 'importlib' has no attribute 'abc'. Did you mean: '_abc'? Add the missing import. Signed-off-by: Michał Winiarski Reviewed-by: Daniel Latypov Reviewed-by: Brendan Higgins Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py index 2c6f916..0874e51 100644 --- a/tools/testing/kunit/kunit_kernel.py +++ b/tools/testing/kunit/kunit_kernel.py @@ -6,6 +6,7 @@ # Author: Felix Guo # Author: Brendan Higgins +import importlib.abc import importlib.util import logging import subprocess