mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
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:
committed by
yoff
parent
dbecb1bd0f
commit
362cf107a4
@@ -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"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
def foo_explicit_func():
|
||||
print("foo_explicit_func called")
|
||||
Reference in New Issue
Block a user