Skip to content

Commit 6521e51

Browse files
committed
Python: Extend import * with plain use
(no calls or anything)
1 parent bc1c22c commit 6521e51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/test/library-tests/ApiGraphs/py3/test_import_star.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# going into it from its corresponding `GlobalSsaVariable`.
77
hello() #$ MISSING: use=moduleImport("unknown").getMember("hello").getReturn()
88

9+
print(const_from_unknown) #$ MISSING: use=moduleImport("unknown").getMember("const_from_unknown")
10+
911
# We don't want our analysis to think that either `non_module_member` or `outer_bar` can
1012
# come from `from unknown import *`
1113
non_module_member

0 commit comments

Comments
 (0)