tests/import: Add test for compiling "import a.b as c".
This commit is contained in:
parent
216a711cd4
commit
3c582bc7cb
@ -9,3 +9,8 @@ pkg_ = __import__("pkg.mod")
|
||||
print(pkg_ is not pkg.mod)
|
||||
print(pkg_ is pkg)
|
||||
print(pkg_.mod is pkg.mod)
|
||||
|
||||
# import using "as"
|
||||
import pkg.mod as mm
|
||||
print(mm is pkg.mod)
|
||||
print(mm.foo())
|
||||
|
Loading…
Reference in New Issue
Block a user