[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220112233657.15886-1-michal.winiarski@intel.com>
Date: Thu, 13 Jan 2022 00:36:57 +0100
From: Michał Winiarski <michal.winiarski@...el.com>
To: <linux-kselftest@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<kunit-dev@...glegroups.com>,
Brendan Higgins <brendanhiggins@...gle.com>,
Daniel Latypov <dlatypov@...gle.com>
CC: Michał Winiarski <michal.winiarski@...el.com>
Subject: [PATCH] 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@...el.com>
---
tools/testing/kunit/kunit_kernel.py | 1 +
1 file changed, 1 insertion(+)
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@...il.com>
# Author: Brendan Higgins <brendanhiggins@...gle.com>
+import importlib.abc
import importlib.util
import logging
import subprocess
--
2.34.1
Powered by blists - more mailing lists