mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +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 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"
|
||||
|
||||
Reference in New Issue
Block a user