summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/attrtuple1.py
blob: 78a0fbed1b73aa13d05fd1037a4bac665873ce36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# test attrtuple
# we can't test this type directly so we use sys.implementation object

import sys
t = sys.implementation

# It can be just a normal tuple on small ports
try:
    t.name
except AttributeError:
    print("SKIP")
    raise SystemExit


# test printing of attrtuple
print(str(t).find("version=") > 0)

# test read attr
print(isinstance(t.name, str))