tests/import: Add test for compiling "import a.b as c".

This commit is contained in:
Damien George 2016-09-30 14:48:22 +10:00
parent 216a711cd4
commit 3c582bc7cb

View File

@ -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())