summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-12 17:13:39 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-12 17:13:39 +1100
commite4e3f0d7270e93e6123dbf05e1f51993e38d970c (patch)
treee1c5cbdcb068a721711a8140f74e8924633224e0
parentc78ef92d787d7bab8acbec69e978037ec2b20d21 (diff)
tests/cpydiff: Update subclassing Exception case and give work-around.
-rw-r--r--tests/cpydiff/types_exception_subclassinit.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/cpydiff/types_exception_subclassinit.py b/tests/cpydiff/types_exception_subclassinit.py
index 177094646..56bab51d1 100644
--- a/tests/cpydiff/types_exception_subclassinit.py
+++ b/tests/cpydiff/types_exception_subclassinit.py
@@ -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):