aboutsummaryrefslogtreecommitdiff
path: root/tests/cpydiff/types_exception_subclassinit.py
blob: ade9ebc7ab964bc194b3ee0f9959541e021594a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
categories: Types,Exception
description: Exception.__init__ method does not exist.
cause: Subclassing native classes is not fully supported in MicroPython.
workaround: Call using ``super()`` instead::

    class A(Exception):
        def __init__(self):
            super().__init__()
"""


class A(Exception):
    def __init__(self):
        Exception.__init__(self)


a = A()