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/async_check.py | |
| parent | 7f366a2190825555c16f57f5dfd4d0d57efd7c1f (diff) | |
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/async_check.py')
| -rw-r--r-- | tests/feature_check/async_check.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/feature_check/async_check.py b/tests/feature_check/async_check.py index 0f6361cd1..727b7136a 100644 --- a/tests/feature_check/async_check.py +++ b/tests/feature_check/async_check.py @@ -1,3 +1,6 @@ # check if async/await keywords are supported async def foo(): await 1 + + +print("async") |
