beyond top level package error in relative import
EDIT: There are better/more coherent answers to this question in other questions: Sibling package imports Relative imports for the billionth time Why doesn’t it work? It’s because python doesn’t record where a package was loaded from. So when you do python -m test_A.test, it basically just discards the knowledge that test_A.test is actually stored in … Read more