diff --git a/tests/basics/exception_chain.py b/tests/basics/exception_chain.py index 14dd6dfbad..cf19f04950 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: diff --git a/tests/basics/self_type_check.py b/tests/basics/self_type_check.py index 947e362cdb..c182afd783 100644 --- a/tests/basics/self_type_check.py +++ b/tests/basics/self_type_check.py @@ -1,5 +1,13 @@ # make sure type of first arg (self) to a builtin method is checked +import sys + +# Minimal builds usually don't enable MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG, +# which is required for this test. +if getattr(sys.implementation, "_build", None) == "minimal": + print("SKIP") + raise SystemExit + list.append try: