summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/class_new.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/class_new.py')
-rw-r--r--tests/basics/class_new.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/class_new.py b/tests/basics/class_new.py
index a6a34c5811..0198456b24 100644
--- a/tests/basics/class_new.py
+++ b/tests/basics/class_new.py
@@ -1,3 +1,11 @@
+try:
+ # If we don't expose object.__new__ (small ports), there's
+ # nothing to test.
+ object.__new__
+except AttributeError:
+ import sys
+ print("SKIP")
+ sys.exit()
class A:
def __new__(cls):
print("A.__new__")