summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_super_object.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/class_super_object.py')
-rw-r--r--tests/basics/class_super_object.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/class_super_object.py b/tests/basics/class_super_object.py
index 21b97328ea..a841d34abb 100644
--- a/tests/basics/class_super_object.py
+++ b/tests/basics/class_super_object.py
@@ -1,4 +1,12 @@
# Calling object.__init__() via super().__init__
+try:
+ # If we don't expose object.__init__ (small ports), there's
+ # nothing to test.
+ object.__init__
+except AttributeError:
+ import sys
+ print("SKIP")
+ sys.exit()
class Test(object):
def __init__(self):