diff options
Diffstat (limited to 'tests/extmod/ticks_diff.py')
-rw-r--r-- | tests/extmod/ticks_diff.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/extmod/ticks_diff.py b/tests/extmod/ticks_diff.py index 4d8df83cf..de45a557a 100644 --- a/tests/extmod/ticks_diff.py +++ b/tests/extmod/ticks_diff.py @@ -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 |