circuitpython/tests/micropython/viper_import.py
2021-03-15 19:27:36 +05:30

16 lines
184 B
Python

# test import within viper function
@micropython.viper
def f():
import micropython
print(micropython.const(1))
from micropython import const
print(const(2))
f()