diff options
Diffstat (limited to 'tests/basics/object_new.py')
-rw-r--r-- | tests/basics/object_new.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/object_new.py b/tests/basics/object_new.py index befb5bfc27..568feccda4 100644 --- a/tests/basics/object_new.py +++ b/tests/basics/object_new.py @@ -2,6 +2,14 @@ # (non-initialized) instance of class. # See e.g. http://infohost.nmt.edu/tcc/help/pubs/python/web/new-new-method.html # TODO: Find reference in CPython docs +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 Foo: |