tests/basics/subclass_native_init.py: Skip if __init__ not supported.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-09-15 13:02:18 +10:00
parent 110bff9422
commit 1b9a9dde2d

View File

@@ -1,5 +1,9 @@
# test subclassing a native type and overriding __init__
if not hasattr(object, "__init__"):
print("SKIP")
raise SystemExit
# overriding list.__init__()
class L(list):
def __init__(self, a, b):