summaryrefslogtreecommitdiff
path: root/tests/misc/cexample_module.py
blob: 979c1fa24b376b5c04fddea0c63a3afa4705cb3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# test custom builtin module

try:
    import cexample
except ImportError:
    print("SKIP")
    raise SystemExit

print(cexample)
print(cexample.__name__)

d = dir(cexample)
d.index("add_ints")
d.index("Timer")
d.index("AdvancedTimer")

print(cexample.add_ints(1, 3))