kunit: tool: Import missing importlib.abc
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 12 Jan 2022 23:36:57 +0000 (00:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:04 +0000 (12:03 +0100)
commitec1d9bb08850d973f9d3ccc9ff0222c44ab4ff6e
tree479184fb24ce0142c042a6d9677b75f4a8f6b19c
parentfdad28ff1d1d428517a1bc2724695c8391633e2c
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 <michal.winiarski@intel.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/kunit/kunit_kernel.py