8459f538eb
Commit cb68a5741aba5d4935428674234a9d643f97405f broke automatic Python feature detection when running tests, because some detection relied on a crash of a feature script returning exactly b"CRASH". This commit fixes this and improves the situation by testing for the lack of a known pass result, rather than an exact failure result. Signed-off-by: Damien George <damien@micropython.org>
9 lines
111 B
Python
9 lines
111 B
Python
# this test for the availability of native emitter
|
|
@micropython.native
|
|
def f():
|
|
pass
|
|
|
|
|
|
f()
|
|
print("native")
|