summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-03-15 15:49:38 +1100
committerDamien George <damien.p.george@gmail.com>2018-03-15 15:49:38 +1100
commitc926e72750ddc410f2ae4f1b28d17dfb09b5ca2c (patch)
tree93b44062a9883ac939117819d0400549bff1f5f4 /tests/cpydiff
parent34e224a4afbacbc8f1621c415b6d3fc42ed84cb8 (diff)
downloadmicropython-c926e72750ddc410f2ae4f1b28d17dfb09b5ca2c.tar.gz
micropython-c926e72750ddc410f2ae4f1b28d17dfb09b5ca2c.zip
tests/cpydiff: Indent workaround code snippet so it formats correctly.
Diffstat (limited to 'tests/cpydiff')
-rw-r--r--tests/cpydiff/types_exception_subclassinit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cpydiff/types_exception_subclassinit.py b/tests/cpydiff/types_exception_subclassinit.py
index 56bab51d13..39cdaf45b8 100644
--- a/tests/cpydiff/types_exception_subclassinit.py
+++ b/tests/cpydiff/types_exception_subclassinit.py
@@ -4,9 +4,9 @@ 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):
+ super().__init__()
"""
class A(Exception):
def __init__(self):