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