Skip to content
Snippets Groups Projects
Commit e4e3f0d7 authored by Damien George's avatar Damien George
Browse files

tests/cpydiff: Update subclassing Exception case and give work-around.

parent c78ef92d
No related branches found
No related tags found
No related merge requests found
"""
categories: Types,Exception
description: Exception.__init__ raises TypeError if overridden and called by subclass
cause: Unknown
workaround: Unknown
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment