diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 00:57:56 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 00:57:56 +0300 |
commit | 83623b2fdeee0ada918ee4f91a99f3d732c3dee7 (patch) | |
tree | 9d73647db282117a5c28e26f35d5bd6f703b0ac6 /tests/basics/class_new.py | |
parent | 453f98914e66b65f7335fb6d24269130c51777be (diff) | |
download | micropython-83623b2fdeee0ada918ee4f91a99f3d732c3dee7.tar.gz micropython-83623b2fdeee0ada918ee4f91a99f3d732c3dee7.zip |
tests/basic/[a-f]*: Make skippable.
For small ports which don't have all features enabled.
Diffstat (limited to 'tests/basics/class_new.py')
-rw-r--r-- | tests/basics/class_new.py | 8 |
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__") |