Python: Add import * tests

Moves the current test out of `test.py`, as otherwise any unknown global
(like, say, `sink`) would _also_ be considered to be something
potentially defined in `unknown`.
This commit is contained in:
Taus
2021-07-13 17:37:33 +00:00
committed by GitHub
parent 48ec223727
commit df8a6b984a
3 changed files with 38 additions and 6 deletions

View File

@@ -74,12 +74,6 @@ def f():
change_foo()
sink(foo) #$ use=moduleImport("danger").getMember("SOURCE")
# Star imports
from unknown import * #$ use=moduleImport("unknown")
hello() #$ MISSING: use=moduleImport("unknown").getMember("hello").getReturn()
# Subclasses