summaryrefslogtreecommitdiff
path: root/tests/basics/class_super.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/class_super.py')
-rw-r--r--tests/basics/class_super.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/class_super.py b/tests/basics/class_super.py
index 698fe5dff..b6ee68308 100644
--- a/tests/basics/class_super.py
+++ b/tests/basics/class_super.py
@@ -35,6 +35,12 @@ class B(A):
return super().foo().count(2) # calling a subsequent method
print(B().foo())
+# first arg to super must be a type
+try:
+ super(1, 1)
+except TypeError:
+ print('TypeError')
+
# store/delete of super attribute not allowed
assert hasattr(super(B, B()), 'foo')
try: