From 7db50ccf5fd0932bacd40436c44d3283e1441d61 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 1 Oct 2025 15:17:13 +1000 Subject: tests/basics: Skip exception_chain and self_type_check on unix minimal. These two tests can't run on the unix minimal build because it doesn't have the relevant build options enabled. So skip them. Signed-off-by: Damien George --- tests/basics/exception_chain.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/basics/exception_chain.py') diff --git a/tests/basics/exception_chain.py b/tests/basics/exception_chain.py index 14dd6dfba..cf19f0495 100644 --- a/tests/basics/exception_chain.py +++ b/tests/basics/exception_chain.py @@ -1,6 +1,13 @@ # Exception chaining is not supported, but check that basic # exception works as expected. +import sys + +# The unix minimal build doesn't enable MICROPY_WARNINGS (required for this test). +if getattr(sys.implementation, "_build", None) == "minimal": + print("SKIP") + raise SystemExit + try: raise Exception from None except Exception: -- cgit v1.2.3