summaryrefslogtreecommitdiffstatshomepage
path: root/tests/feature_check/native_check.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-04-15 00:47:24 +1000
committerDamien George <damien@micropython.org>2021-04-15 00:52:56 +1000
commit8459f538eb45fd8e1e4d614298449cf18de84d75 (patch)
tree830a17f732f5101c52046f6086f69e844b15a361 /tests/feature_check/native_check.py
parent7f366a2190825555c16f57f5dfd4d0d57efd7c1f (diff)
downloadmicropython-8459f538eb45fd8e1e4d614298449cf18de84d75.tar.gz
micropython-8459f538eb45fd8e1e4d614298449cf18de84d75.zip
tests/feature_check: Check for lack of pass result rather than failure.
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>
Diffstat (limited to 'tests/feature_check/native_check.py')
-rw-r--r--tests/feature_check/native_check.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/feature_check/native_check.py b/tests/feature_check/native_check.py
index 3971d1355f..4dc9754d0c 100644
--- a/tests/feature_check/native_check.py
+++ b/tests/feature_check/native_check.py
@@ -2,3 +2,7 @@
@micropython.native
def f():
pass
+
+
+f()
+print("native")