This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
master
micropython
/
tests
/
feature_check
/
async_check.py
7 wiersze
92 B
Python
Czysty
Bezpośredni odnośnik
Zwykły widok
Historia
Unescape
Escape
tests/run-tests: Allow to skip tests using async/await keywords.
2017-02-14 19:03:25 +00:00
# check if async/await keywords are supported
async
def
foo
(
)
:
await
1
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>
2021-04-14 14:47:24 +00:00
print
(
"
async
"
)