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

@@ -4,6 +4,15 @@
import sys
t = sys.implementation
# It can be just a normal tuple on small ports
try:
t.name
except AttributeError:
import sys
print("SKIP")
sys.exit()
# test printing of attrtuple
print(str(t).find("version=") > 0)