tests/micropython: Add test for import from within viper function.
This commit is contained in:
parent
0f3388de1e
commit
679c0c4c83
|
@ -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()
|
|
@ -0,0 +1,2 @@
|
|||
1
|
||||
2
|
Loading…
Reference in New Issue