diff options
author | Damien George <damien@micropython.org> | 2025-09-14 11:51:36 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-01 23:59:15 +1000 |
commit | 381cd730c834a1d071e7e90787ef7354b8532142 (patch) | |
tree | 5245515bb36effd32c54959d30fbb61e1e2dc52d /tests/micropython/heap_locked.py | |
parent | 3de5a4c63c4414a35f31ff50e3642129c1eada02 (diff) |
tests/micropython: Improve skipping of tests using micropython module.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/micropython/heap_locked.py')
-rw-r--r-- | tests/micropython/heap_locked.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/micropython/heap_locked.py b/tests/micropython/heap_locked.py index d9e5b5d40..d9d99493d 100644 --- a/tests/micropython/heap_locked.py +++ b/tests/micropython/heap_locked.py @@ -1,8 +1,10 @@ # test micropython.heap_locked() -import micropython +try: + import micropython -if not hasattr(micropython, "heap_locked"): + micropython.heap_locked +except (AttributeError, ImportError): print("SKIP") raise SystemExit |