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,4 +1,12 @@
# Calling object.__init__() via super().__init__
try:
# If we don't expose object.__init__ (small ports), there's
# nothing to test.
object.__init__
except AttributeError:
import sys
print("SKIP")
sys.exit()
class Test(object):
def __init__(self):