python: add tests for module import

- `--max-import-depth=3` to give points-to a chance
- `not_root` dir to force namespace package logic
- add usage in `example.py` to get files extracted
This commit is contained in:
Rasmus Lerchedahl Petersen
2023-08-28 14:21:34 +02:00
committed by yoff
parent dbecb1bd0f
commit 362cf107a4
8 changed files with 29 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
def explicit_afunc():
print("explicit_afunc called")
return 1
print("explicit_afunc called")
return 1
from foo_explicit.foo_explicit import foo_explicit_func
foo_explicit_func() # $ pt,tt="foo_explicit/foo_explicit.py:foo_explicit_func"

View File

@@ -0,0 +1,2 @@
def foo_explicit_func():
print("foo_explicit_func called")