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:
Jan Lindemann 2023-07-07 11:48:47 +02:00
commit d65a9313bc

View file

@ -12,7 +12,7 @@ from jwutils.log import *
from jwutils.misc import update_symlink from jwutils.misc import update_symlink
from jwutils import Options from jwutils import Options
from devtest.os import * from devtest.os import *
from devtest.os.test import * from .main import *
from .. import TestCase from .. import TestCase
class ListCmd(TestCase): # export class ListCmd(TestCase): # export