summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-10-01 15:17:13 +1000
committerDamien George <damien@micropython.org>2025-10-02 00:37:29 +1000
commit7db50ccf5fd0932bacd40436c44d3283e1441d61 (patch)
tree747e24dd1a39625813c46c30c13aa5d7aabfcefe
parent9a37e2feb93079dc3154db3f891d21e4fd80b0fa (diff)
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 <damien@micropython.org>
-rw-r--r--tests/basics/exception_chain.py7
-rw-r--r--tests/basics/self_type_check.py8
2 files changed, 15 insertions, 0 deletions
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:
diff --git a/tests/basics/self_type_check.py b/tests/basics/self_type_check.py
index 947e362cd..c182afd78 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: