summaryrefslogtreecommitdiff
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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/class_new.py b/tests/basics/class_new.py
index a6a34c581..9a7072ad0 100644
--- a/tests/basics/class_new.py
+++ b/tests/basics/class_new.py
@@ -1,3 +1,10 @@
+try:
+ # If we don't expose object.__new__ (small ports), there's
+ # nothing to test.
+ object.__new__
+except AttributeError:
+ print("SKIP")
+ raise SystemExit
class A:
def __new__(cls):
print("A.__new__")