diff options
author | Damien George <damien@micropython.org> | 2021-04-15 00:47:24 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-04-15 00:52:56 +1000 |
commit | 8459f538eb45fd8e1e4d614298449cf18de84d75 (patch) | |
tree | 830a17f732f5101c52046f6086f69e844b15a361 /tests/feature_check/native_check.py | |
parent | 7f366a2190825555c16f57f5dfd4d0d57efd7c1f (diff) | |
download | micropython-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.py | 4 |
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") |