tests/run-tests: Auto-skip extmod/ticks_diff, extmod/time_ms_us tests.

This commit is contained in:
Yonatan Goldschmidt
2020-01-17 03:37:32 +02:00
committed by Damien George
parent 88cbfd791a
commit 0852acfc74
3 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,8 @@
from utime import ticks_diff, ticks_add
try:
from utime import ticks_diff, ticks_add
except ImportError:
print("SKIP")
raise SystemExit
MAX = ticks_add(0, -1)
# Should be done like this to avoid small int overflow