circuitpython/tests/misc/cexample_module.py
Laurens Valk 5588647ad2 tests/misc/cexample_module: Test class presence.
Now that the Timer class has been merged in a separate pull request,
this can be added to the module test too.

Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-25 08:13:15 +01:00

17 lines
244 B
Python

# 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")
print(cexample.add_ints(1, 3))