summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2022-01-13 00:36:57 +0100
committerShuah Khan <skhan@linuxfoundation.org>2022-01-25 12:59:43 -0700
commit235528072f28b3b0a1446279b7eaddda36dbf743 (patch)
treec043da264bb09a5128e1f2377407ee19cd8bb84d /tools
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
kunit: tool: Import missing importlib.abc
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/kunit/kunit_kernel.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py
index 44bbe54f25f1..3c4196cef3ed 100644
--- a/tools/testing/kunit/kunit_kernel.py
+++ b/tools/testing/kunit/kunit_kernel.py
@@ -6,6 +6,7 @@
# Author: Felix Guo <felixguoxiuping@gmail.com>
# Author: Brendan Higgins <brendanhiggins@google.com>
+import importlib.abc
import importlib.util
import logging
import subprocess