tests/basic/[a-f]*: Make skippable.

For small ports which don't have all features enabled.
This commit is contained in:
Paul Sokolovsky
2017-02-15 00:57:56 +03:00
parent 453f98914e
commit 83623b2fde
15 changed files with 105 additions and 15 deletions

View File

@@ -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__")