patman: Avoid using func_test at top level
authorSimon Glass <sjg@chromium.org>
Sat, 4 Nov 2023 16:25:23 +0000 (10:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Nov 2023 03:04:01 +0000 (20:04 -0700)
Import this only when it is needed, since it is not present when
installed via 'pip install'.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: https://source.denx.de/u-boot/u-boot/-/issues/26

tools/patman/__main__.py

index 3ca858c..d53f686 100755 (executable)
@@ -24,7 +24,6 @@ sys.path.append(os.path.join(our_path, '..'))
 # Our modules
 from patman import cmdline
 from patman import control
-from patman import func_test
 from u_boot_pylib import terminal
 from u_boot_pylib import test_util
 from u_boot_pylib import tools