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/schedule.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/micropython/schedule.py') diff --git a/tests/micropython/schedule.py b/tests/micropython/schedule.py index 6a91459ea..f3dd32661 100644 --- a/tests/micropython/schedule.py +++ b/tests/micropython/schedule.py @@ -1,10 +1,10 @@ # test micropython.schedule() function -import micropython - try: + import micropython + micropython.schedule -except AttributeError: +except (ImportError, AttributeError): print("SKIP") raise SystemExit -- cgit v1.2.3