summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bytecode/mp-tests')
-rw-r--r--tests/bytecode/mp-tests/class6.py7
-rw-r--r--tests/bytecode/mp-tests/class7.py6
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/bytecode/mp-tests/class6.py b/tests/bytecode/mp-tests/class6.py
new file mode 100644
index 0000000000..05a2454f50
--- /dev/null
+++ b/tests/bytecode/mp-tests/class6.py
@@ -0,0 +1,7 @@
+class A:
+ def f(self):
+ pass
+
+class B(A):
+ def f(self):
+ super().f()
diff --git a/tests/bytecode/mp-tests/class7.py b/tests/bytecode/mp-tests/class7.py
new file mode 100644
index 0000000000..3de41dbb52
--- /dev/null
+++ b/tests/bytecode/mp-tests/class7.py
@@ -0,0 +1,6 @@
+# accessing super, but not as a function call
+
+class A:
+ def f():
+ #x = super
+ print(super)