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

pull/3485/merge
Damien George 2017-12-12 17:13:39 +11:00
rodzic c78ef92d78
commit e4e3f0d727
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -1,8 +1,12 @@
"""
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):