diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 18:11:16 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 18:11:16 +0300 |
commit | f980c70997eb9748ed169d486489ab3d0d2002af (patch) | |
tree | b1d32b37acaf447230147b7fdb4a2d37d956e38d /tests/basics/object_new.py | |
parent | b737c9cbc823b012808ae08c8b285b4e1543703a (diff) |
tests/basic/: Make various tests skippable.
To run the testsuite on small ports.
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 befb5bfc2..568feccda 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: |