Skip to content

Commit 2355280

Browse files
mwiniarsshuahkh
authored andcommitted
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>
1 parent e783362 commit 2355280

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/kunit/kunit_kernel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Author: Felix Guo <felixguoxiuping@gmail.com>
77
# Author: Brendan Higgins <brendanhiggins@google.com>
88

9+
import importlib.abc
910
import importlib.util
1011
import logging
1112
import subprocess

0 commit comments

Comments
 (0)