5a04e2cca8
If micropython.native decorator doesn't compile, then we skill all native/viper tests. This patch also re-enables the ujson_loads test on NT. Addresses issue #861, and partially addresses issue #856.
11 lines
167 B
Python
11 lines
167 B
Python
@micropython.native
|
|
def native_test(x):
|
|
print(1, [], x)
|
|
|
|
native_test(2)
|
|
|
|
# check that GC doesn't collect the native function
|
|
import gc
|
|
gc.collect()
|
|
native_test(3)
|