mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
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 <jan@janware.com>
This commit is contained in:
parent
e7d2abedf0
commit
d65a9313bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue