summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/attrtuple1.py
blob: 597bfc2a32c49af55f86afa7bde0780546575511 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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:
    import sys
    print("SKIP")
    sys.exit()


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

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