diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-21 20:35:02 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-21 20:35:02 +0100 |
commit | 90886807a1a4d60cef0882ae6b057a652bfdc7af (patch) | |
tree | 398d3da46c46ed22e17c87354f645acd916f96f0 /tests/basics/class_super_object.py | |
parent | 58ebde46646dd49d22b2accfa9c7a78e15921e48 (diff) | |
parent | a8408a8abe83c98af50821f1eb1df53cf9d202dd (diff) | |
download | micropython-90886807a1a4d60cef0882ae6b057a652bfdc7af.tar.gz micropython-90886807a1a4d60cef0882ae6b057a652bfdc7af.zip |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'tests/basics/class_super_object.py')
-rw-r--r-- | tests/basics/class_super_object.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basics/class_super_object.py b/tests/basics/class_super_object.py new file mode 100644 index 0000000000..21b97328ea --- /dev/null +++ b/tests/basics/class_super_object.py @@ -0,0 +1,15 @@ +# Calling object.__init__() via super().__init__ + +class Test(object): + def __init__(self): + super().__init__() + print("Test.__init__") + +t = Test() + +class Test2: + def __init__(self): + super().__init__() + print("Test2.__init__") + +t = Test2() |