tests/micropython: Improve skipping of tests using micropython module.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-09-14 11:51:36 +10:00
parent 3de5a4c63c
commit 381cd730c8
32 changed files with 165 additions and 50 deletions

View File

@@ -1,7 +1,10 @@
# tests stack_use function in micropython module
import micropython
if not hasattr(micropython, "stack_use"):
try:
import micropython
micropython.stack_use
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit