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 afunc():
print("afunc called")
return 1
print("afunc called")
return 1
from foo.foo import foo_func
foo_func() # $ pt,tt="foo/foo.py:foo_func"