mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests/basics/subclass_native_init.py: Skip if __init__ not supported.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user