summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_super_object.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-21 20:35:02 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-21 20:35:02 +0100
commit90886807a1a4d60cef0882ae6b057a652bfdc7af (patch)
tree398d3da46c46ed22e17c87354f645acd916f96f0 /tests/basics/class_super_object.py
parent58ebde46646dd49d22b2accfa9c7a78e15921e48 (diff)
parenta8408a8abe83c98af50821f1eb1df53cf9d202dd (diff)
downloadmicropython-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.py15
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()