python: allow namespace packages as packages

remove the logic around isPotentialPackage
This commit is contained in:
Rasmus Lerchedahl Petersen
2023-08-21 14:44:34 +02:00
committed by yoff
parent 362cf107a4
commit 1d4832cbfe
2 changed files with 71 additions and 30 deletions

View File

@@ -2,5 +2,5 @@ def afunc():
print("afunc called")
return 1
from baz.foo import foo_func
foo_func() # $ MISSING: pt,tt="baz/foo.py:foo_func"
from not_root.baz.foo import foo_func
foo_func() # $ pt,tt="not_root/baz/foo.py:foo_func"