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

crypto-aes
Damien George 6 years ago
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…
Cancel
Save