From 381cd730c834a1d071e7e90787ef7354b8532142 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 14 Sep 2025 11:51:36 +1000 Subject: tests/micropython: Improve skipping of tests using micropython module. Signed-off-by: Damien George --- tests/micropython/heapalloc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/micropython/heapalloc.py') diff --git a/tests/micropython/heapalloc.py b/tests/micropython/heapalloc.py index e19f8d025..010bf878a 100644 --- a/tests/micropython/heapalloc.py +++ b/tests/micropython/heapalloc.py @@ -1,6 +1,10 @@ # check that we can do certain things without allocating heap memory -import micropython +try: + import micropython +except ImportError: + print("SKIP") + raise SystemExit # Check for stackless build, which can't call functions without # allocating a frame on heap. -- cgit v1.2.3