From d65a9313bccb4a6db87793fdf656bcae5e6b1c72 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 7 Jul 2023 11:48:47 +0200 Subject: [PATCH] devtest.os.test.ListCmd.py: Fix import from test.py Python 3.10 considers get_console unknown after "from devtest.os.test import *", and "from devtest.os.test import get_console" raises ImportError: cannot import name 'get_console' from partially initialized module 'devtest.os.test' (most likely due to a circular import) (/home/user/local/src/jw.dev/jw-devtest/src/python/devtest/os/test/__init__.py) This has worked up until Python 3.8. Solved by changing "from devtest.os.test" to "from .test" Signed-off-by: Jan Lindemann --- src/python/devtest/os/test/ListCmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/devtest/os/test/ListCmd.py b/src/python/devtest/os/test/ListCmd.py index 7cae027..fca87b8 100644 --- a/src/python/devtest/os/test/ListCmd.py +++ b/src/python/devtest/os/test/ListCmd.py @@ -12,7 +12,7 @@ from jwutils.log import * from jwutils.misc import update_symlink from jwutils import Options from devtest.os import * -from devtest.os.test import * +from .main import * from .. import TestCase class ListCmd(TestCase): # export