1# test attrtuple 2# we can't test this type directly so we use sys.implementation object 3 4try: 5 import usys as sys 6except ImportError: 7 import sys 8t = sys.implementation 9 10# It can be just a normal tuple on small ports 11try: 12 t.name 13except AttributeError: 14 print("SKIP") 15 raise SystemExit 16 17 18# test printing of attrtuple 19print(str(t).find("version=") > 0) 20 21# test read attr 22print(isinstance(t.name, str)) 23