summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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()