From e7d2abedf0ab6a2f7bbec6a72f93282f2931656a Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 7 Jul 2023 11:25:39 +0200 Subject: [PATCH] devtest.os.test.test.py: Rename to main.my Renaming test.test.py to main.py, since Python apparently has a problem if file names equal module names. This has worked up until Python 3.8. Python 3.10, however, 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) Solved by renaming test/test.py to test/main.py. Signed-off-by: Jan Lindemann --- src/python/devtest/os/test/{test.py => main.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/python/devtest/os/test/{test.py => main.py} (100%) diff --git a/src/python/devtest/os/test/test.py b/src/python/devtest/os/test/main.py similarity index 100% rename from src/python/devtest/os/test/test.py rename to src/python/devtest/os/test/main.py