tests/micropython: Add test for import from within viper function.

This commit is contained in:
Damien George 2016-11-10 22:54:55 +11:00
parent 0f3388de1e
commit 679c0c4c83
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# test import within viper function
@micropython.viper
def f():
import micropython
print(micropython.const(1))
from micropython import const
print(const(2))
f()

View File

@ -0,0 +1,2 @@
1
2